/
.travis.yml
46 lines (46 loc) · 1.69 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
language: python
dist: precise
python:
- "2.7"
addons:
postgresql: "9.4"
firefox: "49.0"
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
- export TERM=xterm
- conda update --yes conda
- wget -q -N https://github.com/mozilla/geckodriver/releases/download/v0.11.1/geckodriver-v0.11.1-linux64.tar.gz
- tar -xzf geckodriver-v0.11.1-linux64.tar.gz --directory /home/travis/miniconda2/bin
env:
- DJANGO=1.8
install:
- conda install --yes python=2.7 hdf4 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 --upgrade pip
- 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
- 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