-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.travis.yml
54 lines (43 loc) · 1.15 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
# Adapted from dfm/george
language: python
# blocklist
branches:
except:
- nick
- nick_dev
matrix:
include:
# All the versions of Python.
- python: 2.7
- python: 3.4
cache: pip
addons:
apt:
packages:
- libeigen3-dev
# We will pip install pysyzygy and k2plr
git:
submodules: false
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 pip astropy six statsmodels scikit-learn
- pip install coveralls astroML astroML_addons george==0.2.1 pysyzygy k2plr
- 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=everest -v -w tests
after_success:
- coveralls