ci: check after build to handle dependencies
Change-Id: I16efea128ce8b768e81dcf00d047ee560511e23c
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 48658fa..be07f41 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,22 +4,13 @@
# define stages of runner. at the moment,
# just test and build (no deploy).
stages:
- - test
- build
-# define test job
-test-job:
- stage: test
- script:
- # run the R CMD check on the package (this path)
- - R CMD BUILD . && R CMD CHECK $(ls -t . | head -n1)
- # run the devtools test
- # - R -e 'devtools::test()'
-
-build-job:
+build-and-check:
stage: build
before_script:
- apt-get update && apt-get install -y build-essential libglpk40 libxt6
script:
- # install
+ # install & check
- R -e 'devtools::install()'
+ - R CMD build . && R CMD check --no-manual $(ls -t . | head -n1)