@@ -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)
@@ -24,19 +23,23 @@ cache:
24
23
25
24
before_script :
26
25
- mkdir -p "$R_LIBS_USER"
26
+ - git config --global user.email "cpsievert1@gmail.com"
27
+ - git config --global user.name "Carson Sievert"
27
28
- echo "Sys.setenv('plotly_username' = 'cpsievert')" > ~/.Rprofile
28
29
- git clone https://github.com/cpsievert/plotly-test-table.git ../plotly-test-table
29
30
- " wget -q -O - https://github.com/yihui/crandalf/raw/master/inst/scripts/install-pandoc | bash"
30
31
- 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
33
36
34
37
script :
35
38
# 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"
37
40
# 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"
39
42
40
43
after_success :
41
- - cd ../ plotly-test-table
44
+ - cd plotly-test-table
42
45
- Rscript ../plotly/inst/build-push-comment.R
0 commit comments