-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
76 lines (76 loc) · 2.88 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
73
74
75
76
# .travis.yml sets up Travis CI to build & deploy the site.
language: r
python:
- 3.5
sudo: false
cache:
packages: true
directories:
- _cache
- $HOME/.cache/pip
- _virtenv
pip: true
git:
depth: 3
before_install:
- sudo apt-get install -y r-cran-ncdf4 libudunits2-dev libudunits2-dev libgdal-dev libgeos-dev libproj-dev python3 python3-pip
- pip install --user virtualenv
- virtualenv _virtenv
- source ./_virtenv/bin/activate
before_script:
# git setup
- git config --global user.name "Tylar Murray (Travis-CI)"
- git config --global user.email "[email protected]"
# r python libs
- Rscript -e 'devtools::install_github("jeremiaheb/rvc")'
- Rscript -e 'devtools::install_github("timelyportfolio/d3treeR")'
- Rscript -e 'devtools::install_github("iobis/robis", ref="obis2")'
# python libs
- pip install -r requirements.txt
# matplotlib backend:
- export MPLBACKEND=agg
script:
- echo === BUILD ROOT
- Rscript -e 'rmarkdown::render_site()'
- echo === BUILD PAGES DIR
- cp _site.yml pages/_site.yml
- cd pages
- Rscript -e 'rmarkdown::render_site()'
- cd ..
- echo === BUILD EXAMPLES DIR
- cp _site.yml examples/_site.yml
- cd examples
- Rscript -e 'rmarkdown::render_site()'
- cd ..
- echo === BUILD EXAMPLES OTGA
- cp _site.yml examples/otga/_site.yml
- cd examples/otga
- Rscript -e 'rmarkdown::render_site()'
- cd ../..
after_success:
- echo === PUSHING TO GITHUB
# - git ls-files -m -o -X .gitignore -x '*.html' | xargs ls -lh
# - git ls-files -m -o -X .gitignore -x '*.html' | xargs git add
# see #17
- find . -type f -not -path '*.git*' -a -not -name '*~' -a -not -name '*.html' -print0 | xargs -0 git add
- git commit -m "travis-ci.org Rmd render [ci skip]"
- git push --force https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git HEAD:gh-pages
notifications:
email:
recipients:
on_success: change
on_failure: change
env:
global:
secure: KTUpgZtIioDdi9WR4YCOeTuxTqcSdGnhfYJggKQ07mJ82uQNqh4712bkugVKAfMs0idtFbTAx3cVuGSGfxm/PsfYFFZc+RCGDAqx0a7dgYhwcEqkPgh/FqlCVgq+e3/5NfjqKJxkg/NSmTts8CfYvFiLoTYCeaFUgO2JliuJHMo1w1W/dizOMHyRRCtvm0b2hZ3n4511kOxwNaJ2vdCJXAC3P849mhjhhE8Bep56RZNXmPcVl+nnWGyY4t9rmETcayRB0wk48GZGLdW1jbyFa3mSEAXmLTDy4sOkJmz2awxvbU0pA/MYF+ZcAAX8bxZA7U2hS9dFUwY58nxV/EcAJJPFkL4k0WrfTHuH+becYNwU1I83L/9xDsIyCm+8+wucjLHp1v9rA5IdNVBfHLHWGCEqE/biUvbw/hY0hHczmJhTfkraWQ2Fksrr+qXkhknwm6g3OBmyAyrDpBRXl+DOovGLGQPa43R4OcB70vA+l0EmbEJmQ0vIUD/cB9bhhaCJKuK5nPNIqs51CWgrzpGwAikefFBYD2tIqi/4X92UXXWMDVDQQvroeuJkrzjFwslVvtX3NaUr2LYgkl9fELmlVMDjqraVdAjqGmYORxK6XYhqJ6rJ73QZ8YkLqH95G4KE+UX7vWxPFLTyf7hZqdl6YMCbea7AIPRquWx4K3+ineI=
# NOTE: the following will deploy the rmarkdown site directly (skipping jekyll):
# deploy:
# provider: pages
# skip-cleanup: true
# github-token: $GH_TOKEN
# keep-history: true
# on:
# branch: master
# target-branch: gh-pages
# local-dir: _site