forked from tidyverse/ggplot2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (38 loc) · 1.15 KB
/
.travis.yml
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
language: R
cache: packages
sudo: true
dist: trusty
# build matrix; turn on vdiffr only on r release
matrix:
include:
- r: devel
# avoind errors due to world clock API (hopefully can be removed in future)
env: _R_CHECK_SYSTEM_CLOCK_=false
- r: release
env: VDIFFR_RUN_TESTS=true
before_cache:
- Rscript -e 'remotes::install_cran("pkgdown")'
- Rscript -e 'remotes::install_github("tidyverse/tidytemplate")'
deploy:
provider: script
script: Rscript -e 'pkgdown::deploy_site_github(verbose = TRUE)'
skip_cleanup: true
- r: 3.5
- r: 3.4
- r: 3.3
- r: 3.2
env: R_REMOTES_NO_ERRORS_FROM_WARNINGS=true
# environment variables set for all builds
env:
global:
# don't treat missing suggested packages as error
- _R_CHECK_FORCE_SUGGESTS_=false
# switch off vdiffr by default
- VDIFFR_RUN_TESTS=false
after_success:
- Rscript -e 'covr::codecov()'
before_install:
- 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)'