@@ -8,11 +8,10 @@ addons:
8
8
packages :
9
9
- r-base-dev
10
10
- r-recommended
11
- - qpdf
12
11
13
12
env :
14
13
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)"
16
15
# plotly_api_key (for posting to plot.ly)
17
16
- secure : " jlIAFoBGaDWUQDh6oGNb2BgU31/80iioM4y4xwx35yWkGKkNIID1eMEuiIn+/ipLvOVHkPTDS6DYnOtD8EIBpROgAKHFY33gM1h7P6NRxVszzC6WLP2ASnq95DWq36DAC2Oevy05V7nwSRFilPwSt6JLppYUInG+WdaZ+QOSRi4="
18
17
# GITHUB_PAT (for pushing to plotly-test-table)
@@ -30,15 +29,17 @@ before_script:
30
29
- git clone https://github.com/cpsievert/plotly-test-table.git ../plotly-test-table
31
30
- " wget -q -O - https://github.com/yihui/crandalf/raw/master/inst/scripts/install-pandoc | bash"
32
31
- Rscript -e 'if (length(find.package("devtools", quiet = TRUE)) == 0L) { install.packages("devtools", repos = "http://cran.rstudio.com") }'
33
- - Rscript -e 'library(devtools);update_packages("devtools", repos = "http://cran.rstudio.com")'
34
- - 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
35
36
36
37
script :
37
38
# run R CMD check on the non-pull request build
38
- - 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"
39
40
# we do some fancy stuff on the pull request build that confuses R CMD check
40
- - 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"
41
42
42
43
after_success :
43
- - cd ../ plotly-test-table
44
+ - cd plotly-test-table
44
45
- Rscript ../plotly/inst/build-push-comment.R
0 commit comments