-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
59 lines (48 loc) · 957 Bytes
/
.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
os: linux
dist: xenial
language: r
r_packages:
- devtools
- rnaturalearthdata
- rgeos
- pkgdown
- remotes
before_script:
- Rscript -e "devtools::install_deps()"
warnings_are_errors: false
before_install: |
sudo apt-get -y install \
build-essential \
libcurl4-gnutls-dev \
libxml2-dev \
libssl-dev \
libgdal-dev \
bwidget \
libgdal1-dev \
libgeos-dev \
libgeos++-dev \
libgsl0-dev \
libproj-dev \
libspatialite-dev \
netcdf-bin \
libudunits2-dev \
libmagick++-dev
cache: packages
script: make all
jobs:
include:
- r: release
before_cache: Rscript -e 'remotes::install_cran("pkgdown")'
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
keep_history: true
on:
branch: main
local_dir: docs
after_success:
- Rscript -e 'devtools::install()'
- Rscript -e 'covr::codecov()'
- Rscript -e "devtools::install()"
- Rscript -e "pkgdown::build_site(preview = FALSE)"