Skip to content

Commit 64737f2

Browse files
gabrieldemarmiessefchollet
authored andcommitted
Simplifying travis. (keras-team#11585)
1 parent fcf2ed7 commit 64737f2

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

.travis.yml

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ cache:
77
matrix:
88
include:
99
- python: 2.7
10-
env: KERAS_BACKEND=tensorflow TEST_MODE=INTEGRATION_TESTS
10+
env: KERAS_BACKEND=tensorflow TEST_MODE=INTEGRATION_TESTS PIL=Pil
1111
- python: 3.6
12-
env: KERAS_BACKEND=tensorflow TEST_MODE=PEP8_DOC
12+
env: KERAS_BACKEND=tensorflow TEST_MODE=PEP8_DOC PIL=Pillow
1313
- python: 2.7
1414
env: KERAS_BACKEND=tensorflow
1515
- python: 3.6
1616
env: KERAS_BACKEND=tensorflow
1717
- python: 2.7
18-
env: KERAS_BACKEND=theano THEANO_FLAGS=optimizer=fast_compile
18+
env: KERAS_BACKEND=theano THEANO_FLAGS=optimizer=fast_compile MKL="mkl mkl-service"
1919
- python: 3.6
20-
env: KERAS_BACKEND=theano THEANO_FLAGS=optimizer=fast_compile
20+
env: KERAS_BACKEND=theano THEANO_FLAGS=optimizer=fast_compile MKL="mkl mkl-service"
2121
- python: 2.7
2222
env: KERAS_BACKEND=cntk PYTHONWARNINGS=ignore
2323
- python: 3.6
@@ -47,20 +47,6 @@ install:
4747
# set library path
4848
- export LD_LIBRARY_PATH=$HOME/miniconda/envs/test-environment/lib/:$LD_LIBRARY_PATH
4949

50-
# install PIL for preprocessing tests (they are integration tests).
51-
- if [[ "$TEST_MODE" == "INTEGRATION_TESTS" ]] || [[ "$TEST_MODE" == "PEP8_DOC" ]]; then
52-
if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
53-
export PIL=Pil;
54-
else
55-
export PIL=Pillow;
56-
fi
57-
fi
58-
59-
# install mkl only for Theano.
60-
- if [[ "$KERAS_BACKEND" == "theano" ]]; then
61-
export MKL="mkl mkl-service";
62-
fi
63-
6450
# install pydot for visualization tests
6551
- travis_retry conda install $MKL pydot graphviz $PIL
6652

0 commit comments

Comments
 (0)