Skip to content

Commit

Permalink
travis
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebaron committed Sep 4, 2019
1 parent 3a0a16c commit c436613
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
19 changes: 19 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r

language: R
sudo: false
dist: trusty
cache: packages

warnings_are_errors: false

env:
global:
- R_KEEP_PKG_SOURCE=yes
- _R_S3_METHOD_LOOKUP_BASEENV_AFTER_GLOBALENV_=true
- _R_S3_METHOD_LOOKUP_USE_TOPENV_AS_DEFENV_=true
- _R_CHECK_FORCE_SUGGESTS=0

script:
- export _R_CHECK_FORCE_SUGGESTS_=0
- make travis
12 changes: 8 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ CHKDIR=.
## Set libPaths:
export R_LIBS=${LIBDIR}

travis:
make build
R CMD check ${TARBALL} --as-cran

test:
Rscript -e 'library(testthat)' -e 'test_file("tests/testthat.R")'

Expand All @@ -18,7 +22,7 @@ rhub:
cran:
make doc
make build
R CMD CHECK ${TARBALL} --as-cran
R CMD check ${TARBALL} --as-cran

covr:
Rscript inst/covr/covr.R
Expand All @@ -39,15 +43,15 @@ build:
R CMD build --md5 $(PKGDIR)

install:
R CMD INSTALL --install-tests ${TARBALL}
R CMD install --install-tests ${TARBALL}

install-build:
R CMD INSTALL --build --install-tests ${TARBALL}
R CMD install --build --install-tests ${TARBALL}

check:
make doc
make build
R CMD CHECK ${TARBALL} -o ${CHKDIR}
R CMD check ${TARBALL} -o ${CHKDIR}

readme:
Rscript -e 'rmarkdown::render("README.Rmd")'
Expand Down

0 comments on commit c436613

Please sign in to comment.