Skip to content

Commit cac79ba

Browse files
committed
lets try caching again
1 parent 8e14bad commit cac79ba

File tree

1 file changed

+31
-18
lines changed

1 file changed

+31
-18
lines changed

.travis.yml

Lines changed: 31 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,43 @@
11
language: c
2+
sudo: false
23

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+
- R_LIBS_USER=~/R/library NOT_CRAN=true
915

10-
install:
11-
- ./travis-tool.sh install_deps
16+
cache:
17+
directories:
18+
$R_LIBS_USER
19+
global:
20+
# plotly_api_key (for posting to plot.ly)
21+
- secure: "UAETDsmeXkXm9eUpZa3JTm8/cv+jyLmArXE0TQD0yQNICFNPkGeNergoQmkesRqG+ifLu6V1lPXu1XlqQPdXY60clUHThDN+AjsBmcv9F170k6RtBSV8pIKL9fsW8t0v/maEet86qOSf3cNa5+gK8GjBH1pmLrN2rF9r7RhwUdg="
22+
# GITHUB_PAT (for pushing to plotly-test-table)
23+
- secure: "LHJONgWOo+98vNeFLI7LSJU3RtbMVszlI79GB8CcXmc2mlgM/UtZ5b6RnkNlhmg3Gj1/uObfm/rIybVTwuS1yNpeKv73+gsZOYhobVXiUGVxdRFG/mg5mbqwyWkkuofjPGFlMZCEMgHim37eZzgjSibwVH1LClRDsCoFMCgvgV0="
1224

1325
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
1628
- 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)'
33+
# for debugging
34+
- Rscript -e 'devtools::install()'
35+
- Rscript -e 'plotly:::verify("username")'
36+
- Rscript -e 'plotly:::verify("api_key")'
1737

1838
script:
19-
- Rscript -e "devtools::install(); source('tests/testthat.R', chdir = TRUE)"
39+
- Rscript -e 'devtools::check()'
2040

2141
after_success:
2242
- cd ../plotly-test-table
2343
- 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

Comments
 (0)