Skip to content

Commit

Permalink
.travis.yml: Manually install mkl
Browse files Browse the repository at this point in the history
The py2 build using the theano backend breaks unless mkl is installed
manually and an environment variable set.
  • Loading branch information
clbarnes committed Jan 9, 2018
1 parent 416da3e commit e0bd8a8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ matrix:
include:
- python: 2.7
env: KERAS_BACKEND=theano
env: MKL_THREADING_LAYER=GNU
- python: 2.7
env: KERAS_BACKEND=tensorflow
- python: 3.4
Expand All @@ -31,6 +32,8 @@ install:

- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib pandas pytest h5py
- source activate test-environment
# Prevent py2 theano build getting upset
- conda install -q -y mkl-service
- pip install git+git://github.com/Theano/Theano.git
- pip install keras

Expand All @@ -52,4 +55,4 @@ script:
- echo -e "Running tests with the following config:\n$(cat ~/.keras/keras.json)"
PYTHONPATH=../$PWD:$PYTHONPATH py.test tests/;
after_success:
- coveralls
- coveralls

0 comments on commit e0bd8a8

Please sign in to comment.