Skip to content

Commit

Permalink
gitlab ci
Browse files Browse the repository at this point in the history
  • Loading branch information
dblodgett-usgs committed Nov 30, 2020
1 parent df2bea3 commit 2fa8c54
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ docs
DISCLAIMER.md
code.json
appveyor.yml
.github
.github
.gitlab-ci.yml
29 changes: 29 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
variables:
_R_CHECK_CRAN_INCOMING_: "false"
_R_CHECK_FORCE_SUGGESTS_: "true"
_R_CHECK_DONTTEST_EXAMPLES_: "false"
APT_PKGS: "libudunits2-dev libgdal-dev libgeos-dev libproj-dev libcurl4-openssl-dev libssh2-1-dev libssl-dev libxml2-dev zlib1g-dev git p7zip-full"

before_script:
- wget --no-check-certificate -O /usr/local/share/ca-certificates/DOIRootCA2.crt https://raw.githubusercontent.com/dblodgett-usgs/hydrogeoenv/master/linux/DOIRootCA2.cer
- chmod 644 /usr/local/share/ca-certificates/DOIRootCA2.crt && update-ca-certificates
- 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
- r -e 'devtools::install_dev_deps()'

test:
stage: test
tags:
- chs-shared
image: code.chs.usgs.gov:5001/wma/hydrogeoenv:rocker-geospatial
script:
- r -e 'devtools::check(check_dir = ".")'
- r -e 'capture.output(print(covr::coverage_to_list(covr::package_coverage(type = "all")), width = 20), file = "covr.txt", split = TRUE)'
artifacts:
paths:
- "*.Rcheck"
- "covr.txt"
Empty file modified tests/testthat/data/Yahara_alb/Yahara_River_HRUs_alb_eq.dbf
100755 → 100644
Empty file.
Empty file modified tests/testthat/data/Yahara_alb/Yahara_River_HRUs_alb_eq.prj
100755 → 100644
Empty file.
Empty file modified tests/testthat/data/Yahara_alb/Yahara_River_HRUs_alb_eq.shp
100755 → 100644
Empty file.
Empty file modified tests/testthat/data/Yahara_alb/Yahara_River_HRUs_alb_eq.shx
100755 → 100644
Empty file.

0 comments on commit 2fa8c54

Please sign in to comment.