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
52 lines (43 loc) · 1.91 KB
/
.travis.yml
File metadata and controls
52 lines (43 loc) · 1.91 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
52
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: "WsvmMHN4YVhnk0bLRE04APcLbs5s4vWKSHjEdU0bPXd0xdMTzZeP5D7pxyF1983C+P5LpSnGHv4dgwLMBkNzxJwBR7/Ta7lfO1akYILWwxib+1DVbCqUH5Z4Ba1FSCQptIrLNGR3P7+0Lem4hEhqKdPKltFnxhnXO0Y+MeG71IQ="
# GITHUB_PAT (for pushing to plotly-test-table)
- secure: "Ar5FRxsMJHxb8CQmmsoFx5Tm6ncFvF3LHtAMtfcOE2e9JAbXQ471PGzOMM7yudGa2vVuQJBpB6bWktuE30J68MQxgRmxeaJYmOp+ePqyW80y/zEa2P3R4//eb9Rif2lmsmaqz7HtVfX4xr3YX4N+ZjfyI8TFt5Phue18tXeMoJw="
# installing Rserve from source requires non-standard R build (--enable-R-shlib)
r_binary_packages:
- rserve
r_packages:
- devtools
- quantreg
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