-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
53 lines (45 loc) · 1.57 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
language: c
# blacklist
branches:
except:
- /.*/
env:
global:
- default_branch_scenario: "published/region2015"
- study_area: "Golfo de Guayaquil"
matrix:
fast_finish: true # finish at first failure
before_install:
- curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh
- curl -OL http://raw.github.com/OHI-Science/ohi-webapps/master/ohi-travis-functions.R
- chmod 755 ./travis-tool.sh
- ./travis-tool.sh bootstrap
- sudo apt-get install pandoc
install:
- ./travis-tool.sh install_r zoo
- ./travis-tool.sh install_r psych
- ./travis-tool.sh install_r tidyr
- ./travis-tool.sh install_r brew
- ./travis-tool.sh install_r rmarkdown
- ./travis-tool.sh install_r httr
- ./travis-tool.sh install_r git2r
- ./travis-tool.sh install_github ohi-science/rCharts
- ./travis-tool.sh install_github ohi-science/ohicore@dev # @master or @2f7a3d7 to specify by commit (https://github.com/OHI-Science/ohicore/commits/master)
- git config --global user.email "lowndes@nceas.ucsb.edu"
- git config --global user.name "Julia Lowndes"
script:
# execute as a sequence, so if any fail, none of the subsequent commands are executed
- Rscript ohi-travis-functions.R calculate_scores &&
Rscript ohi-travis-functions.R create_results &&
Rscript ohi-travis-functions.R push_branch draft &&
Rscript ohi-travis-functions.R push_branch published &&
Rscript ohi-travis-functions.R create_pages
after_failure:
- ./travis-tool.sh dump_logs
notifications:
email:
recipients:
- bbest@nceas.ucsb.edu
- lowndes@nceas.ucsb.edu
on_success: change
on_failure: always