forked from dfm/python-fsps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (40 loc) · 1.13 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
sudo: false
env:
global:
- NUMPY_VERSION=1.10.4
matrix:
- PYTHON_VERSION=2.7
- PYTHON_VERSION=3.4
- PYTHON_VERSION=3.5
- PYTHON_VERSION=2.7
NUMPY_VERSION=1.11
- PYTHON_VERSION=3.4
NUMPY_VERSION=1.11
- PYTHON_VERSION=3.5
NUMPY_VERSION=1.11
addons:
apt:
packages:
- gfortran
install:
# FSPS
- git clone https://github.com/cconroy20/fsps libfsps
- cd libfsps/src
- cp ../../.travis.Makefile Makefile
- make all
- cd ../..
- export SPS_HOME=`pwd`/libfsps
# Python
- wget https://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
- conda create --yes -n test python=$PYTHON_VERSION numpy==$NUMPY_VERSION pytest pip
- source activate test
# Python FSPS
- python setup.py build_ext --inplace
script:
- travis_wait py.test -v fsps/tests.py