forked from OHDSI/BrokenAdaptiveRidge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
25 lines (22 loc) · 1.01 KB
/
.travis.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
language: r
sudo: false
cache: packages
r_packages:
- covr
- drat
before_script:
- export PKG_NAME=$(Rscript -e 'cat(paste0(devtools::as.package(".")$package))')
- export PKG_TARBALL=$(Rscript -e 'pkg <- devtools::as.package("."); cat(paste0(pkg$package,"_",pkg$version,".tar.gz"))')
- Rscript -e 'devtools::install_github("OHDSI/Cyclops")'
# Build and check package
script:
- R CMD build .
- _R_CHECK_CRAN_INCOMING_=FALSE R CMD check "${PKG_TARBALL}" --as-cran
- cat ${PKG_NAME}.Rcheck/00install.out # Print out install / compile log
after_success:
- Rscript -e 'covr::codecov()'
# Rebuild docker container
- curl --data "build=true" -X POST https://registry.hub.docker.com/u/ohdsi/broadsea-methodslibrary/trigger/f0b51cec-4027-4781-9383-4b38b42dd4f5/
# Rebuild drat repo
- export PKG_TARBALL=$(Rscript -e 'pkg <- devtools::as.package("."); cat(paste0(pkg$package,"_",pkg$version,".tar.gz"))')
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && bash deploy.sh