forked from e-koch/FilFinder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
72 lines (57 loc) · 1.84 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
language: python
sudo: false
python:
- 2.7
# The apt packages below are needed for sphinx builds. A full list of packages
# that can be included can be found here:
#
# https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise
addons:
apt:
packages:
- graphviz
- texlive-latex-extra
- dvipng
env:
global:
- SETUP_CMD='test'
- CONDA_ADDITIONAL='scipy matplotlib networkx h5py'
- NP_VER=1.12
- ASTRO_VER=1.3
- SKIMG_VER=0.13
matrix:
- SETUP_CMD='egg_info'
matrix:
include:
# Check for sphinx doc build warnings - we do this first because it
# may run for a long time
# - python: 2.7
# env: SETUP_CMD='build_sphinx -w'
- python: 2.7
env: NP_VER=1.10 ASTRO_VER=1.0 SKIMG_VER=0.11
- python: 2.7
env: NP_VER=1.10 ASTRO_VER=1.1 SKIMG_VER=0.11
- python: 2.7
env: NP_VER=1.11 ASTRO_VER=1.2 SKIMG_VER=0.12
- python: 2.7
env: NP_VER=1.11 ASTRO_VER=1.2 SKIMG_VER=0.12
- python: 2.7
env: NP_VER=1.12 ASTRO_VER=1.3 SKIMG_VER=0.13
before_install:
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./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:
# Create a new environment
- conda create --yes -n test python=$TRAVIS_PYTHON_VERSION pip cython pytest
- source activate test
# Now install dependencies
- conda install --yes $CONDA_ADDITIONAL
- conda install --yes numpy=$NP_VER astropy=$ASTRO_VER scikit-image=$SKIMG_VER
script:
- python setup.py $SETUP_CMD