@@ -8,11 +8,10 @@ addons:
88 packages :
99 - r-base-dev
1010 - r-recommended
11- - qpdf
1211
1312env :
1413 global :
15- - R_LIBS_USER=~/R/library NOT_CRAN=true
14+ - R_LIBS_USER=~/R/library NOT_CRAN=true R_PKG="$(basename $TRAVIS_REPO_SLUG)"
1615 # plotly_api_key (for posting to plot.ly)
1716 - secure : " jlIAFoBGaDWUQDh6oGNb2BgU31/80iioM4y4xwx35yWkGKkNIID1eMEuiIn+/ipLvOVHkPTDS6DYnOtD8EIBpROgAKHFY33gM1h7P6NRxVszzC6WLP2ASnq95DWq36DAC2Oevy05V7nwSRFilPwSt6JLppYUInG+WdaZ+QOSRi4="
1817 # GITHUB_PAT (for pushing to plotly-test-table)
@@ -24,19 +23,23 @@ cache:
2423
2524before_script :
2625 - mkdir -p "$R_LIBS_USER"
26+ -
git config --global user.email "[email protected] " 27+ - git config --global user.name "Carson Sievert"
2728 - echo "Sys.setenv('plotly_username' = 'cpsievert')" > ~/.Rprofile
2829 - git clone https://github.com/cpsievert/plotly-test-table.git ../plotly-test-table
2930 - " wget -q -O - https://github.com/yihui/crandalf/raw/master/inst/scripts/install-pandoc | bash"
3031 - Rscript -e 'if (length(find.package("devtools", quiet = TRUE)) == 0L) { install.packages("devtools", repos = "http://cran.rstudio.com") }'
31- - Rscript -e 'library(devtools);update_packages("devtools", repos = "http://cran.rstudio.com")'
32- - Rscript -e 'library(devtools);install_deps(repos = "http://cran.rstudio.com", dependencies = TRUE)'
32+ - Rscript -e 'devtools::update_packages("devtools", repos = "http://cran.rstudio.com")'
33+ - Rscript -e 'devtools::install_deps(repos = "http://cran.rstudio.com", dependencies = TRUE)'
34+ - cd ..; rm -f *.tar.gz; R CMD build $R_PKG
35+ - R CMD INSTALL ${R_PKG}_*.tar.gz
3336
3437script :
3538 # run R CMD check on the non-pull request build
36- - sh -c "if [ '$TRAVIS_PULL_REQUEST' = 'false' ]; then Rscript -e 'devtools:: check()' ; fi"
39+ - sh -c "if [ '$TRAVIS_PULL_REQUEST' = 'false' ]; then R CMD check ${R_PKG}_*.tar.gz --no-manual ; fi"
3740 # 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/testthat.R\", chdir = T)'; fi"
41+ - sh -c "if [ '$TRAVIS_PULL_REQUEST' != 'false' ]; then Rscript -e 'source(\"plotly/ tests/testthat.R\", chdir = T)'; fi"
3942
4043after_success :
41- - cd ../ plotly-test-table
44+ - cd plotly-test-table
4245 - Rscript ../plotly/inst/build-push-comment.R
0 commit comments