forked from Biometris/statgenHTP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
55 lines (50 loc) · 1.34 KB
/
.gitlab-ci.yml
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
stages:
- test
- deploy
variables:
APT_PKGS: "libcurl4-openssl-dev libssh2-1-dev libssl-dev libxml2-dev zlib1g-dev git build-essential gobjc++ libomp-dev libmagick++-6.q16-dev tk dialog"
_R_CHECK_FORCE_SUGGESTS_: "false"
TT_AT_HOME: "false"
before_script:
- apt-get update
- apt-get install -y --no-install-recommends ${APT_PKGS}
- apt-get install -y --no-install-recommends qpdf pandoc pandoc-citeproc
- export PATH="/usr/local/lib/R/site-library/littler/examples/:${PATH}"
- echo "options(Ncpus = $(nproc --all))" >> /usr/local/lib/R/etc/Rprofile.site
- install2.r devtools plot3Drgl
- r -e 'devtools::install_dev_deps()'
r-release:
stage: test
tags:
- Docker
image: rocker/r-ver:latest
script:
- r -e 'devtools::check(check_dir = ".")'
artifacts:
paths:
- "*.Rcheck"
name: logs
when: always
r-devel:
stage: test
tags:
- Docker
image: rocker/r-ver:devel
script:
- r -e 'devtools::check(check_dir = ".")'
artifacts:
paths:
- "*.Rcheck"
name: logs
when: always
coverage:
stage: deploy
tags:
- Docker
image: rocker/r-ver:latest
when: on_success
script:
- install2.r covr
- r -e 'devtools::install()'
- r -e 'covr::package_coverage(type = "none", code = "tinytest::run_test_dir(at_home = FALSE)")'
coverage: '/Coverage:\s*(\d+.\d+\%)/'