-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.travis.yml
94 lines (85 loc) · 4.8 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
os:
- linux
- osx
# Use new container infrastructure
sudo: false
# We use Anaconda to configure our Python environments
language: generic
# Build matrix is given as: "env x os - excludes"
env:
global:
- PYTHONPATH=$TRAVIS_BUILD_DIR
matrix:
- MAGNI_CONDA=minimum CONDA_PYTHON_VERSION=2.7
- MAGNI_CONDA=minimum CONDA_PYTHON_VERSION=3.4
- MAGNI_CONDA=minimum CONDA_PYTHON_VERSION=3.5
- MAGNI_CONDA=minimum CONDA_PYTHON_VERSION=3.6
- MAGNI_CONDA=newest CONDA_PYTHON_VERSION=2.7
- MAGNI_CONDA=newest CONDA_PYTHON_VERSION=3.4
- MAGNI_CONDA=newest CONDA_PYTHON_VERSION=3.5
- MAGNI_CONDA=newest CONDA_PYTHON_VERSION=3.6
# Exclude broken Anaconda OSX Python 3.4 minimum build
matrix:
exclude:
- os: osx
env: MAGNI_CONDA=minimum CONDA_PYTHON_VERSION=3.4
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
if [[ "$CONDA_PYTHON_VERSION" == "2.7" ]]; then
wget http://repo.continuum.io/miniconda/Miniconda2-latest-MacOSX-x86_64.sh -O miniconda.sh;
else
wget http://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
fi;
else
if [[ "$CONDA_PYTHON_VERSION" == "2.7" ]]; then
wget http://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH=$HOME/miniconda/bin:$PATH
- conda update --yes conda
# Install packages
install:
- if [[ "$CONDA_PYTHON_VERSION" == "2.7" ]]; then
if [[ "$MAGNI_CONDA" == "minimum" ]]; then
conda create -n travis_test --yes python=2.7 numpy=1.8 "numexpr>=2.0.1" scipy=0.14 matplotlib=1.3 pytables=3.1 coverage=3.7 ipython=2.1 pyzmq nose=1.3 pep8=1.5 pillow=2.1.0 pyflakes=0.8 sphinx=1.3.1 setuptools=11.3 scikit-learn=0.15.1;
else
conda create -n travis_test --yes python=2.7 numpy numexpr "scipy>=0.16" matplotlib pytables coverage jupyter jsonschema pyzmq nose pep8 pillow pyflakes sphinx setuptools scikit-learn;
fi;
elif [[ "$CONDA_PYTHON_VERSION" == "3.3" ]]; then
if [[ "$MAGNI_CONDA" == "minimum" ]]; then
conda create -n travis_test --yes python=3.3 numpy=1.8 "numexpr>=2.0.1" scipy=0.14 matplotlib=1.3 pytables=3.1 coverage=3.7 ipython=2.1 pyzmq nose=1.3 pep8=1.5 pillow=2.1.0 pyflakes=0.8 sphinx=1.3.1 setuptools=11.3 scikit-learn=0.15.1;
else
conda create -n travis_test --yes python=3.3 numpy numexpr "scipy>=0.16" matplotlib pytables coverage ipython jsonschema pyzmq nose pep8 pillow pyflakes sphinx setuptools scikit-learn;
fi;
elif [[ "$CONDA_PYTHON_VERSION" == "3.4" ]]; then
if [[ "$MAGNI_CONDA" == "minimum" ]]; then
conda create -n travis_test --yes python=3.4 numpy=1.8 "numexpr>=2.0.1" scipy=0.14 matplotlib=1.3 pytables=3.1 coverage=3.7 ipython=2.1 pyzmq nose=1.3 pep8=1.5 pillow=2.3.1 pyflakes=0.8 sphinx=1.3.1 setuptools=11.3 scikit-learn=0.15.1;
else
conda create -n travis_test --yes python=3.4 numpy numexpr "scipy>=0.16" matplotlib pytables coverage jupyter jsonschema pyzmq nose pep8 pillow pyflakes sphinx setuptools scikit-learn;
fi;
elif [[ "$CONDA_PYTHON_VERSION" == "3.5" ]]; then
if [[ "$MAGNI_CONDA" == "minimum" ]]; then
conda create -n travis_test --yes python=3.5 numpy=1.10 "numexpr>=2.4.4" scipy=0.16 matplotlib=1.5 pytables=3.2 coverage=4.0 jupyter=1.0.0=py35_1 jupyter_client=4.1.1 jupyter_console=4.1.0 jupyter_core=4.0.6 jsonschema pyzmq nose=1.3 pep8=1.6 pillow=3.0 pyflakes=1.0.0 sphinx=1.3.1 setuptools=18.1 scikit-learn=0.17;
else
conda create -n travis_test --yes python=3.5 numpy numexpr "scipy>=0.16" matplotlib pytables coverage jupyter jsonschema pyzmq nose pep8 pillow pyflakes sphinx setuptools scikit-learn;
fi;
elif [[ "$CONDA_PYTHON_VERSION" == "3.6" ]]; then
if [[ "$MAGNI_CONDA" == "minimum" ]]; then
conda create -n travis_test --yes python=3.6 numpy=1.11 "numexpr>=2.6.1" scipy=0.18 matplotlib=2.0 pytables=3.3 coverage=4.2 jupyter=1.0.0 jupyter_client=4.4.0 jupyter_console=5.0.0 jupyter_core=4.2.1 jsonschema pyzmq nose=1.3 pep8=1.7 pillow=4.0 pyflakes=1.5.0 sphinx=1.5.1 setuptools=27.2 scikit-learn=0.18;
else
conda create -n travis_test --yes python=3.6 numpy numexpr "scipy>=0.16" matplotlib pytables coverage jupyter jsonschema pyzmq nose pep8 pillow pyflakes sphinx setuptools scikit-learn;
fi;
fi
- if [[ "$MAGNI_CONDA" == "minimum" && "$CONDA_PYTHON_VERSION" != "3.6" ]]; then
conda install -n travis_test --yes -c https://conda.anaconda.org/chroxvi radon=1.2;
else
conda install -n travis_test --yes -c https://conda.anaconda.org/chroxvi radon;
fi;
before_script:
- source activate travis_test
- cd magni/tests
script:
- python run_tests.py;