-
Notifications
You must be signed in to change notification settings - Fork 26
/
.gitlab-ci.yml
43 lines (40 loc) · 1.13 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
stages:
- test
- deploy
test-latest:
stage: test
image: rocker/geospatial:latest
script:
- apt-get update && apt-get install --no-install-recommends -y devscripts
- R -e "devtools::install_dev_deps()"
- R -e "devtools::document()"
- R -e "devtools::check()"
- R -e "install.packages(c('DT', 'covr')); covr::gitlab(quiet=FALSE)"
artifacts:
paths:
- public
test-devel:
stage: test
image: rocker/geospatial:dev-osgeo
script:
- apt-get update && apt-get install --no-install-recommends -y devscripts libproj22 libgdal30
- R -e "install.packages(c('raster', 'terra', 'ncdf4'))"
- R -e "remotes::install_git('https://github.com/r-spatial/sf')"
- R -e "devtools::document()"
- R -e "devtools::check()"
pages:
stage: deploy
image: rocker/geospatial
script:
- apt-get update && apt-get install --no-install-recommends -y libharfbuzz-dev libfribidi-dev
- R -e "install.packages('pkgdown')"
- R -e "devtools::document()"
- R -e "pkgdown::build_site()"
- mkdir -p public
- mv docs/* public
artifacts:
paths:
- public
only:
- master
- gitlab-pages