Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (21 sloc) 665 Bytes
language: r
warnings_are_errors: true
sudo: required
notifications:
email:
on_success: change
on_failure: always
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"))')
- R CMD build --no-build-vignettes .
- R CMD INSTALL ${PKG_TARBALL}
- rm ${PKG_TARBALL}
- echo "Session info:"
- Rscript -e "library(${PKG_NAME});devtools::session_info('${PKG_NAME}')"
after_script:
- echo "after script"
after_failure:
- echo "after failure"
after_success:
- echo "after success"