forked from Starfish-develop/Starfish
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
43 lines (34 loc) · 1.12 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
# Much of this script was adapted from astropy/astropy, dfm/george.
language: python
env:
global:
- NUMPY_VERSION=1.9
matrix:
include:
# All the versions of Python.
- python: 3.3
- python: 3.4
# Old versions of NumPy.
- python: 3.3
env: NUMPY_VERSION=1.8
- python: 3.4
env: NUMPY_VERSION=1.8
before_install:
- wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update --q conda
- conda info -a
install:
- sudo apt-get install -qq
- conda create --yes -n test python=$TRAVIS_PYTHON_VERSION
- source activate test
- conda install --yes numpy=$NUMPY_VERSION scipy matplotlib Cython h5py scikit-learn astropy pyyaml pytest
- python setup.py build_ext --inplace
script:
# Download the necessary PHOENIX libraries to run some tests.
- bash tests/download_PHOENIX_test_spec.sh
# Run the tests
- py.test