Skip to content

Commit 07270a3

Browse files
committed
run R CMD check on non-pull request builds
1 parent 7baf7c9 commit 07270a3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ before_script:
3232
- Rscript -e 'library(devtools);install_deps(repos = "http://cran.rstudio.com", dependencies = TRUE)'
3333

3434
script:
35-
- Rscript -e 'devtools::check()'
35+
# run R CMD check on the non-pull request build
36+
- sh -c "if [ '$TRAVIS_PULL_REQUEST' = 'false' ]; then Rscript -e 'devtools::check()'"
37+
# we do some fancy stuff on the pull request build that confuses R CMD check
38+
- sh -c "if [ '$TRAVIS_PULL_REQUEST' != 'false' ]; then Rscript -e 'devtools::install(); source(\"tests/testhat.R\", chdir = T)'"
3639

3740
after_success:
3841
- cd ../plotly-test-table

0 commit comments

Comments
 (0)