-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
43 lines (35 loc) · 1.03 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
# Adapted from dfm/george
language: python
matrix:
include:
# All the versions of Python.
# NOTE: travis is having conda issues with py2 right now...
- python: 2.7
- python: 3.4
git:
submodules: true
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
- conda update --yes conda
install:
- conda create --yes -n test python=$TRAVIS_PYTHON_VERSION
- source activate test
- conda install --yes numpy scipy matplotlib nose numba pandas
- ln -sf $(which gcc) x86_64-conda_cos6-linux-gnu-gcc
- python setup.py develop
# Configure a headless display to test plot generation
# http://stackoverflow.com/a/35403128
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
# Give xvfb some time to start
- sleep 3
script:
- nosetests --with-coverage --cover-package=planetplanet -v -w tests
addons:
apt:
packages:
libgsl0-dev