-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
72 lines (63 loc) · 1.73 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# based on https://bookdown.org/yihui/blogdown/travis-github.html
language: r
dist: bionic
latex: false
branches:
only:
- master
cache:
# `packages: yes` caches $HOME/R/Library & sets R_LIB_USER=$HOME/R/Library environment variable
packages: yes
directories:
- $HOME/bin
# python
- $HOME/.cache/pip
# robis
- $HOME/.cache/robis_query_cache
# site
- $TRAVIS_BUILD_DIR/src
- $TRAVIS_BUILD_DIR/static
# R
- /usr/local/lib/R/site-library
- /usr/lib/R/site-library
- /usr/lib/R/library
# python
- /usr/lib/python3.5/dist-packages
- $HOME/.local/lib/python3.5/site-packages
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
# TODO: assert these dirs are in the cached directory list:
- Rscript -e '.libPaths()'
- python3 -c "import site; print(site.getsitepackages())"
- python3 -m site --user-site
before_install:
# ubuntu system package dependencies:
- sudo apt-get install -y r-cran-ncdf4 libudunits2-dev libudunits2-dev libgdal-dev libgeos-dev libproj-dev python3 python3-pip
# python package manager updates:
- sudo python3 -m pip install --upgrade pip setuptools wheel numpy
# log extra info to help debug:
- python3 --version
- R --version
install:
- ./install_python_deps.sh
- travis_wait 40 ./install_R_deps.sh
script:
- Rscript ./render_site.R
# after_success:
# - Rscript -e 'covr::codecov()'
# after_failure:
# - travis cache --delete
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
on:
branch: master
local_dir: docs
# fqdn: travis-blogdown.yihui.name # this sets CNAME for custom DN
notifications:
email:
recipients:
on_success: never
on_failure: change