forked from plotly/plotly.R
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
51 lines (42 loc) · 1.89 KB
/
.travis.yml
File metadata and controls
51 lines (42 loc) · 1.89 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
46
47
48
49
50
51
language: R
cache: packages
sudo: true
dist: trusty
r:
# - oldrel
- release
- devel
env:
global:
- _R_CHECK_FORCE_SUGGESTS_=false 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="
# installing Rserve from source requires non-standard R build (--enable-R-shlib)
r_binary_packages:
- rserve
r_packages:
- devtools
r_github_packages:
- tidyverse/ggplot2
before_install:
# mainly for installing sf (which requires units/rgeos/rgdal)
- sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable --yes
- sudo apt-get --yes --force-yes update -qq
- sudo apt-get install --yes libudunits2-dev libproj-dev libgeos-dev libgdal-dev
- Rscript -e 'update.packages(ask = FALSE)'
before_script:
- 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
- cd ..; rm -f *.tar.gz; R CMD build $R_PKG
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