-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
60 lines (55 loc) · 1.73 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
56
57
58
59
60
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 libharfbuzz-dev libfribidi-dev libgit2-dev libudunits2-dev libgdal-dev"
_R_CHECK_FORCE_SUGGESTS_: "false"
TT_AT_HOME: "true"
GITHUB_PAT: "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"
before_script:
- apt-get update
- apt-get install -y --no-install-recommends ${APT_PKGS}
- 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 remotes
# Uncomment lines below for installation of develop versions of statgenGWAS/statgenIBD
# - r -e 'remotes::install_github("Biometris/statgenGWAS", ref = "develop", dependencies = TRUE)'
# - r -e 'remotes::install_github("Biometris/statgenIBD", ref = "develop", dependencies = TRUE)'
- r -e 'devtools::install_dev_deps(upgrade = "never")'
r-release:
stage: test
tags:
- Docker
image: rocker/verse:latest
script:
- r -e 'devtools::check(check_dir = ".")'
artifacts:
paths:
- "*.Rcheck"
name: logs
when: always
expire_in: 1 month
r-devel:
stage: test
tags:
- Docker
image: rocker/verse:devel
script:
- r -e 'devtools::check(check_dir = ".")'
artifacts:
paths:
- "*.Rcheck"
name: logs
when: always
expire_in: 1 month
coverage:
stage: deploy
tags:
- Docker
image: rocker/verse: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 = TRUE)")'
coverage: '/Coverage:\s*(\d+.\d+\%)/'