|
1 | 1 | language: c
|
| 2 | +sudo: false |
2 | 3 |
|
3 |
| -before_install: |
4 |
| - - curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh |
5 |
| - - chmod 755 ./travis-tool.sh |
6 |
| - - ./travis-tool.sh bootstrap |
7 |
| - # password is encrypted below |
8 |
| - - echo "Sys.setenv('plotly_username' = 'RTestBot3000')" > ~/.Rprofile |
| 4 | +addons: |
| 5 | + apt: |
| 6 | + sources: |
| 7 | + - r-packages-precise |
| 8 | + packages: |
| 9 | + - r-base-dev |
| 10 | + - r-recommended |
| 11 | + - qpdf |
| 12 | + |
| 13 | +env: |
| 14 | + - NOT_CRAN=true R_LIBS_USER=~/R/library |
| 15 | + global: |
| 16 | + # plotly_api_key (for posting to plot.ly) |
| 17 | + - secure: "UAETDsmeXkXm9eUpZa3JTm8/cv+jyLmArXE0TQD0yQNICFNPkGeNergoQmkesRqG+ifLu6V1lPXu1XlqQPdXY60clUHThDN+AjsBmcv9F170k6RtBSV8pIKL9fsW8t0v/maEet86qOSf3cNa5+gK8GjBH1pmLrN2rF9r7RhwUdg=" |
| 18 | + # GITHUB_PAT (for pushing to plotly-test-table) |
| 19 | + - secure: "LHJONgWOo+98vNeFLI7LSJU3RtbMVszlI79GB8CcXmc2mlgM/UtZ5b6RnkNlhmg3Gj1/uObfm/rIybVTwuS1yNpeKv73+gsZOYhobVXiUGVxdRFG/mg5mbqwyWkkuofjPGFlMZCEMgHim37eZzgjSibwVH1LClRDsCoFMCgvgV0=" |
9 | 20 |
|
10 |
| -install: |
11 |
| - - ./travis-tool.sh install_deps |
| 21 | +cache: |
| 22 | + directories: |
| 23 | + $R_LIBS_USER |
12 | 24 |
|
13 | 25 | before_script:
|
14 |
| - - git config --global user.name "cpsievert" |
15 |
| - - git config --global user.email "cpsievert1@gmail.com" |
| 26 | + - mkdir -p "$R_LIBS_USER" |
| 27 | + - echo "Sys.setenv('plotly_username' = 'RTestBot3000')" > ~/.Rprofile |
16 | 28 | - git clone https://github.com/cpsievert/plotly-test-table.git ../plotly-test-table
|
| 29 | + - "wget -q -O - https://github.com/yihui/crandalf/raw/master/inst/scripts/install-pandoc | bash" |
| 30 | + - 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)' |
17 | 33 |
|
18 | 34 | script:
|
19 |
| - - Rscript -e "devtools::install(); source('tests/testthat.R', chdir = TRUE)" |
| 35 | + - Rscript -e 'devtools::install(); source("tests/testthat.R", chdir = T)' |
20 | 36 |
|
21 | 37 | after_success:
|
22 | 38 | - cd ../plotly-test-table
|
23 | 39 | - Rscript ../plotly/inst/build-push-comment.R
|
24 |
| - |
25 |
| -env: |
26 |
| - global: |
27 |
| - # plotly_api_key (for posting to plot.ly) |
28 |
| - - secure: "UAETDsmeXkXm9eUpZa3JTm8/cv+jyLmArXE0TQD0yQNICFNPkGeNergoQmkesRqG+ifLu6V1lPXu1XlqQPdXY60clUHThDN+AjsBmcv9F170k6RtBSV8pIKL9fsW8t0v/maEet86qOSf3cNa5+gK8GjBH1pmLrN2rF9r7RhwUdg=" |
29 |
| - # GITHUB_PAT (for pushing to plotly-test-table) |
30 |
| - - secure: "LHJONgWOo+98vNeFLI7LSJU3RtbMVszlI79GB8CcXmc2mlgM/UtZ5b6RnkNlhmg3Gj1/uObfm/rIybVTwuS1yNpeKv73+gsZOYhobVXiUGVxdRFG/mg5mbqwyWkkuofjPGFlMZCEMgHim37eZzgjSibwVH1LClRDsCoFMCgvgV0=" |
|
0 commit comments