forked from bethgelab/foolbox
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
51 lines (50 loc) · 2.46 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
sudo: required
dist: trusty
language: python
python:
- 2.7
- 3.5
- 3.6
env:
global:
- THEANO_FLAGS='floatX=float32'
matrix:
- KERAS_BACKEND=tensorflow
- KERAS_BACKEND=theano
before_install:
- pip install -U pip
- travis_wait travis_retry pip install --upgrade numpy
- travis_wait travis_retry pip install --upgrade scipy
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then pip install cython; fi # install separately
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then pip install -r requirements-dev-py2.txt; fi
- if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then pip install -r requirements-dev-py3.txt; fi
- if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then pip install -r requirements-dev-py3.txt; fi
- travis_wait travis_retry pip install -r requirements-dev.txt
- travis_wait travis_retry pip install --upgrade tensorflow
- travis_wait travis_retry pip install --upgrade theano
- travis_wait travis_retry pip install --upgrade https://github.com/Lasagne/Lasagne/archive/master.zip
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then pip install http://download.pytorch.org/whl/cu75/torch-0.1.12.post2-cp27-none-linux_x86_64.whl; fi
- if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then pip install http://download.pytorch.org/whl/cu75/torch-0.1.12.post2-cp35-cp35m-linux_x86_64.whl; fi
- if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then pip install http://download.pytorch.org/whl/cu75/torch-0.1.12.post2-cp36-cp36m-linux_x86_64.whl; fi
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then travis_wait travis_retry pip install https://cntk.ai/PythonWheel/CPU-Only/cntk-2.0-cp27-cp27mu-linux_x86_64.whl; fi
- if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then travis_wait travis_retry pip install https://cntk.ai/PythonWheel/CPU-Only/cntk-2.0-cp35-cp35m-linux_x86_64.whl; fi
- if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then travis_wait travis_retry pip install https://cntk.ai/PythonWheel/CPU-Only/cntk-2.0-cp36-cp36m-linux_x86_64.whl; fi
- travis_wait travis_retry pip install --upgrade keras>=2.0.7
- travis_wait travis_retry pip install --upgrade mxnet==0.10.0
#install open mpi for cntk
- mkdir /tmp/mpi
- pushd /tmp/mpi
- wget http://cntk.ai/PythonWheel/ForKeras/depends/openmpi_1.10-3.zip
- unzip ./openmpi_1.10-3.zip
- sudo dpkg -i openmpi_1.10-3.deb
- popd
install:
- pip install -e .
script:
- pytest
- flake8 --ignore E402,E741 .
after_success:
- coveralls
cache:
- pip
- apt