forked from nengo/nengo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (56 loc) · 1.76 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
language: c
sudo: false
notifications:
email:
env:
global:
- NUMPY="1.10"
- SETUP_CMD="test -a 'nengo -n 2 -v --durations 20'"
- EXTRA_CMD=""
- CONDA_DEPS="matplotlib jupyter pygments pytest"
- PIP_DEPS="pytest-xdist"
matrix:
include:
- env: >
PYTHON="2.7"
SETUP_CMD="test -a '--cov-config .coveragerc --cov nengo nengo -n 2 -v --durations 20'"
EXTRA_CMD="coveralls"
CONDA_DEPS="$CONDA_DEPS coverage"
PIP_DEPS="$PIP_DEPS pytest-cov coveralls"
- env: >
PYTHON="2.7"
SETUP_CMD=""
EXTRA_CMD="flake8 -v nengo"
CONDA_DEPS="flake8"
PIP_DEPS=""
- env: PYTHON="2.7" NUMPY="1.6"
- env: PYTHON="2.7" NUMPY="1.7"
- env: PYTHON="2.7" NUMPY="1.8"
- env: PYTHON="2.7" NUMPY="1.9"
- env: PYTHON="3.4"
- env: PYTHON="3.5"
# 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 $CONDA_DEPS ]]; then conda install $CONDA_DEPS; fi
- if [[ -n $PIP_DEPS ]]; then eval pip install "$PIP_DEPS"; fi
# Run the tests
script:
- "echo 'backend : Agg' > matplotlibrc"
- if [[ -n $SETUP_CMD ]]; then
python -c "import numpy; numpy.show_config()"
python setup.py -q install;
eval python setup.py "$SETUP_CMD";
fi
- if [[ -n $EXTRA_CMD ]]; then $EXTRA_CMD; fi