forked from PecanProject/pecan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
111 lines (100 loc) · 2.58 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# Follow instructions on:
# https://blog.rstudio.org/2016/03/09/r-on-travis-ci/
language: r
# use containers
dist: precise
sudo: false
cache:
- directories:
- $HOME/R/Library
- .install
- .check
- .test
- .doc
- packages
addons:
postgresql: 9.4
apt:
packages:
- libnetcdf-dev
- liblapack-dev
- libcurl4-gnutls-dev
- jags
- libudunits2-dev
- python-dev
- postgresql-9.4-postgis-2.1
- postgresql-9.4-postgis-2.1-scripts
- netcdf-bin
- bc
- curl
- udunits-bin
- libgmp-dev
- libproj-dev
- pandoc
- tcl
- tcl-dev
# need to compile documentation
# BROKEN MISSING FONT
#- texinfo
#- texlive-latex-base
#- texlive-latex-recommended
#- texlive-latex-extra
#- texlive-fonts-recommended
#- texlive-fonts-extra
## notifications should go to gitter
notifications:
webhooks:
urls:
- secure: "gL81TwDOcK/32Hxxl2BcY7pioyrtyV4y1f+D/vGEpQz8mYL+M+55tUkhHJF53779XSUdQdML/gsr8JZVtApJdLIBysFU67GVYXm1s7x/b8J61CkMfDgsmposEWK4NFYHfeIRj32ioeajrQ+RKi1I6chjzYT7gLyl70gtPelRJ4s="
on_success: always
on_failure: always
on_start: always
email:
on_success: always
on_failure: always
## list of services to be running
services:
- postgresql
## install sipnet and clim file
install:
- pushd $HOME
- curl -o sipnet_unk.tar.gz http://isda.ncsa.illinois.edu/~kooper/EBI/sipnet_unk.tar.gz
- tar zxf sipnet_unk.tar.gz
- cd sipnet_unk
- make
- popd
before_script:
- psql -U postgres -c "CREATE ROLE BETY WITH LOGIN CREATEDB SUPERUSER CREATEROLE UNENCRYPTED PASSWORD 'bety'";
- psql -U postgres -c "CREATE DATABASE bety OWNER bety;"
- curl -o bety.sql http://isda.ncsa.illinois.edu/~kooper/PEcAn/data/bety.sql
- psql -U postgres < bety.sql
- rm bety.sql
- ./scripts/add.models.sh
- chmod +x book_source/deploy.sh
- chmod +x documentation/tutorials/deploy.sh
script:
- set -e
# - scripts/build.sh --no-git --tests --name travis
- echo 'Installing PEcAn packages'
- make
- echo 'Testing PEcAn packages'
- make test
- make document
- echo 'Testing Integration'
- ./tests/integration.sh travis
- if [[ `git status -s` ]]; then
echo "These files were changed by the build process:";
git status -s;
echo "Have you run devtools::check and commited any updated Roxygen outputs?";
exit 1;
fi
- set +e
after_script:
- echo 'Building Book'
- pushd book_source
- make
- popd
- echo 'Building Tutorials'
- pushd documentation/tutorials
- make build deploy
- popd