forked from mcgredonps/stoqs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (41 loc) · 1.45 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
language: python
python:
- "2.7"
addons:
postgresql: "9.4"
services:
- rabbitmq
before_install:
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/miniconda2/bin:$PATH
- export HDF5_DIR=/home/travis/miniconda2/
- export NETCDF4_DIR=/home/travis/miniconda2/
- export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libgfortran.so.3
- conda update --yes conda
env:
- DJANGO=1.8
install:
- conda install --yes python=2.7 hdf5 netcdf4 atlas numpy scipy matplotlib nose dateutil pandas statsmodels
# Coverage packages are on my binstar channel
- conda install --yes -c dan_blanchard python-coveralls nose-cov
- pip install -r requirements/travis-ci.txt
before_script:
- psql -c 'CREATE DATABASE template_postgis;' -U postgres
- psql -c 'CREATE EXTENSION postgis;' -U postgres -d template_postgis
- psql -c 'CREATE EXTENSION postgis_topology;' -U postgres -d template_postgis
- psql -c 'ALTER ROLE travis SUPERUSER;' -U postgres
- psql -c '\du' -U postgres -d template_postgis
- export DATABASE_URL="postgis://travis:@127.0.0.1:5432/stoqs"
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
script:
- ./test.sh CHANGEME
after_script:
- COVERALLS_REPO_TOKEN=W1wSPd6A9HGyoPWXGlyZ6mxkGsZR7BybT coveralls --base_dir stoqs
notifications:
email:
on_success: change
on_failure: always