forked from pzhaonet/travis-ncov
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (30 loc) · 710 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
language: r
latex: false
pandoc: false
addons:
apt:
packages:
- libudunits2-dev
- gdal-bin
- libgdal1-dev
cache:
directories:
- $HOME/.local/share/renv
- $TRAVIS_BUILD_DIR/renv/library
packages: true
r_binary_packages:
- rgdal
git:
depth: 5
submodules: false
before_install:
- git config --global user.email "${GIT_EMAIL}"
- git config --global user.name "${GIT_UN}"
script:
- Rscript -e "renv::restore()"
- Rscript scripts/pull_ncov.R
# - Rscript scripts/pull_map.R # No longer needed, timeout issues
after_success:
- git add -A
- git commit -m "Data Updated."
- git push -q https://${GH_KEY}@github.com/beansrowning/travis-ncov.git HEAD:master