-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
39 lines (37 loc) · 892 Bytes
/
.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
stages:
- build
- deploy
buildAndTest:
image: rocker/tidyverse
stage: build
script:
# Install the qpdf dependency using the Debian `apt-get` package manager
- apt-get update && apt-get -y install qpdf libglpk-dev
# Install package dependencies
- R -e 'install.packages(c("ape", "readxl", "writexl", "testthat", "stringdist", "qualV", "igraph", "DT","tidyverse"))'
# Install pkgdown
- R -e 'install.packages("pkgdown")'
# Test package
- make test
# Install package
- make install
# R CMD check
- make check
- mkdir -p check
- cp R-CMD-check_output.txt R-CMD-check_badge.svg check/
# Build website
- make pkgdown
# Copy R CMD check results
- cp check/* docs/
artifacts:
paths:
- docs
pages:
stage: deploy
script:
- mv docs public
artifacts:
paths:
- public
only:
- master