-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
25 lines (22 loc) · 874 Bytes
/
.gitlab-ci.yml
File metadata and controls
25 lines (22 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
stages:
- test
variables:
PROJECT_NAME: algorithmia-r
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2
RUNNING_ON_BUILD_SERVER: "true"
test:tests:
stage: test
image: alpine
script:
- if [ -z "$ALGORITHMIA_API_KEY" ]; then echo "Algorithmia API key not defined"; exit 1; fi
- apk add R R-dev R-doc bash build-base linux-headers libxml2-dev texinfo texlive texmf-dist-fontsextra
- Rscript -e "chooseCRANmirror(graphics=FALSE, ind=1) ; install.packages('remotes') ; remotes::install_deps(dependencies = TRUE)"
- R CMD build .
- R CMD check *tar.gz || cat /builds/algorithmia-eng/algorithmia-r/algorithmia.Rcheck/tests/RunAllTests.Rout.fail
test:check_as_cran:
stage: test
image: alpine
script:
- apk add R R-dev R-doc bash build-base linux-headers libxml2-dev texinfo texlive texmf-dist-fontsextra git
- sh tools/test-cran-package