-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.gitlab-ci.yml
executable file
·38 lines (31 loc) · 1.26 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
image: rocker/tidyverse:latest
variables:
CODECOV_TOKEN: $CODECOV_TOKEN
pages:
stage: deploy
before_script:
- apt update -qq
- apt install --yes libssl-dev libssh2-1-dev libxml2-dev libcurl4-gnutls-dev libgit2-dev libmagick++-dev pandoc libudunits2-dev libgdal-dev libglpk-dev
script:
- Rscript -e 'install.packages(c("pkgdown", "DiagrammeR", "DiagrammeRsvg", "covr"))'
- Rscript -e 'devtools::install_deps(dependencies = TRUE)'
- Rscript -e 'remotes::install_github("vidonne/unhcrtemplate")'
- Rscript -e 'install.packages("crul", repos = "http://packages.ropensci.org")'
- Rscript -e 'remotes::install_gitlab("dickoa/robotoolbox")'
- Rscript -e 'pkgdown::build_site(override = list(destination = "public"))'
after_script:
- Rscript -e 'covr::package_coverage()'
- Rscript -e 'covr::codecov()'
artifacts:
paths:
- public
release_job:
stage: build
image: registry.gitlab.com/gitlab-org/release-cli:latest
rules:
- if: $CI_COMMIT_TAG # Run this job when a tag is created
script:
- echo "running release_job"
release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties
tag_name: '$CI_COMMIT_TAG'
description: '$CI_COMMIT_TAG'