forked from Starfish-develop/Starfish
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (32 loc) · 1.05 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
# 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/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/miniconda/bin:$PATH
- conda update --yes conda
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