Skip to content
Snippets Groups Projects
Commit 2fa8c544 authored by Blodgett, David L.'s avatar Blodgett, David L.
Browse files

gitlab ci

parent df2bea34
No related branches found
No related tags found
No related merge requests found
Pipeline #27669 failed
......@@ -6,4 +6,5 @@ docs
DISCLAIMER.md
code.json
appveyor.yml
.github
\ No newline at end of file
.github
.gitlab-ci.yml
\ No newline at end of file
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"
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment