Skip to content

Commit d57e67f

Browse files
Merge pull request #704 from rstudio/bugfix/test-tensorflow-1.12
Add TensorFlow 1.12 and 2.0 to Travis
2 parents 2439e0c + afbedbc commit d57e67f

File tree

1 file changed

+36
-8
lines changed

1 file changed

+36
-8
lines changed

.travis.yml

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,34 @@ language: r
44
dist: trusty
55
sudo: false
66

7-
env:
8-
- KERAS_BACKEND="tensorflow"
9-
- KERAS_BACKEND="theano" THEANO_FLAGS=optimizer=fast_compile
10-
- KERAS_IMPLEMENTATION="tensorflow"
11-
7+
matrix:
8+
include:
9+
- name: "TensorFlow (Keras)"
10+
env:
11+
- KERAS_BACKEND="tensorflow"
12+
- KERAS_IMPLEMENTATION="tensorflow"
13+
- name: "Theano"
14+
env:
15+
- KERAS_BACKEND="theano"
16+
- THEANO_FLAGS=optimizer=fast_compile
17+
- name: "TensorFlow (TensorFlow)"
18+
env:
19+
- KERAS_BACKEND="tensorflow"
20+
- KERAS_IMPLEMENTATION="tensorflow"
21+
- name: "TensorFlow (TensorFlow 1.12)"
22+
env:
23+
- KERAS_IMPLEMENTATION="tensorflow"
24+
- TENSORFLOW_WHEEL="https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.12.0-cp27-none-linux_x86_64.whl"
25+
- name: "TensorFlow (TensorFlow 2.0-preview)"
26+
env:
27+
- KERAS_IMPLEMENTATION="tensorflow"
28+
- TENSORFLOW_WHEEL="https://files.pythonhosted.org/packages/b8/48/983c8af6e63cfeebb6bb89866c38ea7d16491b8f72309f27df41b33a751e/tf_nightly_2.0_preview-1.13.0.dev20190117-cp27-cp27mu-manylinux1_x86_64.whl"
29+
allow_failures:
30+
- name: "TensorFlow (TensorFlow 2.0-preview)"
31+
env:
32+
- KERAS_IMPLEMENTATION="tensorflow"
33+
- TENSORFLOW_WHEEL="https://files.pythonhosted.org/packages/b8/48/983c8af6e63cfeebb6bb89866c38ea7d16491b8f72309f27df41b33a751e/tf_nightly_2.0_preview-1.13.0.dev20190117-cp27-cp27mu-manylinux1_x86_64.whl"
34+
1235
cache:
1336
packages: true
1437
directories:
@@ -17,6 +40,11 @@ cache:
1740

1841
before_script:
1942
- pip2.7 install --upgrade --ignore-installed --user travis virtualenv
20-
- pip2.7 install --upgrade --ignore-installed --user travis keras h5py pyyaml requests Pillow scipy theano tensorflow
21-
22-
43+
- pip2.7 install --upgrade --ignore-installed --user travis keras h5py pyyaml requests Pillow scipy theano
44+
- |
45+
if [[ ! -z "$TENSORFLOW_WHEEL" ]]; then
46+
pip2.7 install --upgrade --ignore-installed --user travis $TENSORFLOW_WHEEL
47+
else
48+
pip2.7 install --upgrade --ignore-installed --user travis tensorflow
49+
pip show tensorflow
50+
fi

0 commit comments

Comments
 (0)