-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
93 lines (87 loc) · 2.54 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
language: c
sudo: false
notifications:
email:
env:
global:
- PYTHON="3.6"
- TEST_CMD="py.test nengolib"
- NUMPY="1.13"
- SCIPY="0.19.0"
- PIP_DEPS=""
- CONDA_DEPS="matplotlib"
matrix:
include:
- env:
PYTHON="2.7"
PIP_DEPS="nengo==2.2.0 pytest==3.2"
- env:
PYTHON="2.7"
PIP_DEPS="nengo==2.3.0 pytest==3.2"
- env:
PYTHON="2.7"
PIP_DEPS="nengo==2.4.0 pytest==3.2"
- env:
PYTHON="2.7"
PIP_DEPS="nengo==2.5.0 pytest==3.2"
- env:
PYTHON="2.7"
PIP_DEPS="nengo==2.6.0 pytest==3.2"
- env:
PYTHON="2.7"
PIP_DEPS="nengo==2.7.0 pytest==3.2"
- env:
CODE_COV="True"
TEST_CMD="py.test nengolib --cov=nengolib"
PIP_DEPS="nengo==2.8.0 pytest==3.6 pytest-cov codecov"
- env: >
EXTRA_CMD="flake8 -v nengolib"
CONDA_DEPS="flake8"
TEST_CMD=""
NUMPY=""
SCIPY=""
- env:
TEST_CMD="py.test nengolib/tests/test_notebooks.py --slow"
CONDA_DEPS="matplotlib jupyter ipython pygments"
PIP_DEPS="nengo==2.8.0 pytest==3.6"
- env:
PYTHON="3.4"
PIP_DEPS="nengo==2.8.0 pytest==3.6 numpy==1.13.0 scipy==0.19.0"
NUMPY=""
SCIPY=""
- env:
PYTHON="3.5"
PIP_DEPS="nengo==2.8.0 pytest==3.6"
- env:
SCIPY="1.0.0"
PIP_DEPS="nengo==2.8.0 pytest==3.6"
# Setup Miniconda
before_install:
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- conda create -q -n test python=$PYTHON pip
- source activate test
# Install packages with conda, then pip
install:
- if [[ -n $NUMPY ]]; then export CONDA_DEPS="$CONDA_DEPS numpy=$NUMPY"; fi
- if [[ -n $SCIPY ]]; then export CONDA_DEPS="$CONDA_DEPS scipy=$SCIPY"; fi
- if [[ -n $CONDA_DEPS ]]; then conda install $CONDA_DEPS; fi
- if [[ -n $PIP_DEPS ]]; then eval pip install "$PIP_DEPS"; fi
# Run the tests
script:
- if [[ -n $TEST_CMD ]]; then
python -c "import numpy; numpy.show_config()";
python -c "import scipy; scipy.show_config()";
python -c "import nengo; print(nengo.__version__)";
python setup.py -q install;
eval $TEST_CMD;
fi
- if [[ -n $EXTRA_CMD ]]; then $EXTRA_CMD; fi
# Report test code coverage
after_success:
- if [[ -n $CODE_COV ]]; then codecov; fi