forked from COVAIL/plotly
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
45 lines (39 loc) · 1.97 KB
/
.travis.yml
File metadata and controls
45 lines (39 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
language: c
sudo: false
addons:
apt:
sources:
- r-packages-precise
packages:
- r-base-dev
- r-recommended
env:
global:
- R_LIBS_USER=~/R/library NOT_CRAN=true R_PKG="$(basename $TRAVIS_REPO_SLUG)"
# plotly_api_key (for posting to plot.ly)
- secure: "jlIAFoBGaDWUQDh6oGNb2BgU31/80iioM4y4xwx35yWkGKkNIID1eMEuiIn+/ipLvOVHkPTDS6DYnOtD8EIBpROgAKHFY33gM1h7P6NRxVszzC6WLP2ASnq95DWq36DAC2Oevy05V7nwSRFilPwSt6JLppYUInG+WdaZ+QOSRi4="
# GITHUB_PAT (for pushing to plotly-test-table)
- secure: "LHJONgWOo+98vNeFLI7LSJU3RtbMVszlI79GB8CcXmc2mlgM/UtZ5b6RnkNlhmg3Gj1/uObfm/rIybVTwuS1yNpeKv73+gsZOYhobVXiUGVxdRFG/mg5mbqwyWkkuofjPGFlMZCEMgHim37eZzgjSibwVH1LClRDsCoFMCgvgV0="
cache:
directories:
$R_LIBS_USER
before_script:
- mkdir -p "$R_LIBS_USER"
- git config --global user.email "[email protected]"
- git config --global user.name "cpsievert"
- echo "Sys.setenv('plotly_username' = 'cpsievert')" > ~/.Rprofile
- git clone https://github.com/cpsievert/plotly-test-table.git ../plotly-test-table
- "wget -q -O - https://github.com/yihui/crandalf/raw/master/inst/scripts/install-pandoc | bash"
- Rscript -e 'if (length(find.package("devtools", quiet = TRUE)) == 0L) { install.packages("devtools", repos = "http://cran.rstudio.com") }'
- Rscript -e 'devtools::update_packages("devtools", repos = "http://cran.rstudio.com")'
- Rscript -e 'devtools::install_deps(repos = "http://cran.rstudio.com", dependencies = TRUE)'
- cd ..; rm -f *.tar.gz; R CMD build $R_PKG
- R CMD INSTALL ${R_PKG}_*.tar.gz
script:
# run R CMD check on the non-pull request build
- sh -c "if [ '$TRAVIS_PULL_REQUEST' = 'false' ]; then R CMD check ${R_PKG}_*.tar.gz --no-manual; fi"
# we do some fancy stuff on the pull request build that confuses R CMD check
- sh -c "if [ '$TRAVIS_PULL_REQUEST' != 'false' ]; then Rscript -e 'source(\"plotly/tests/testthat.R\", chdir = T)'; fi"
after_success:
- cd plotly-test-table
- Rscript ../plotly/inst/build-push-comment.R