Skip to content

Commit 19bfb29

Browse files
authored
Merge pull request #78 from nbigaouette-eai/increase-travis-coverage
Increase Travis coverage
2 parents 828086c + ce55c82 commit 19bfb29

File tree

1 file changed

+28
-5
lines changed

1 file changed

+28
-5
lines changed

.travis.yml

+28-5
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,38 @@ dist: trusty # still in beta, but required for the prebuilt TF binaries
55
cache:
66
cargo: true
77

8-
rust: stable
8+
rust:
9+
- stable
10+
- beta
11+
- nightly
12+
13+
env:
14+
global:
15+
- RUST_BACKTRACE=1
16+
- CC="gcc-4.9"
17+
- CXX="g++-4.9"
18+
matrix:
19+
# Building TensorFlow in Travis is not working properly, probably due
20+
# to resources constraints.
21+
# - TF_RUST_BUILD_FROM_SRC=true
22+
- TF_RUST_BUILD_FROM_SRC=false
23+
24+
os:
25+
- linux
26+
- osx
27+
28+
matrix:
29+
fast_finish: true
30+
allow_failures:
31+
- rust: nightly
32+
933

1034
install:
11-
- export CC="gcc-4.9" CXX="g++-4.9"
12-
- source travis-ci/install.sh
35+
# Install dependencies only if we build tensorflow from source.
36+
- if [[ "$TF_RUST_BUILD_FROM_SRC" == "true" ]]; then source travis-ci/install.sh; fi
37+
- if [[ "$TF_RUST_BUILD_FROM_SRC" == "true" ]]; then pip install --user numpy; fi
1338

1439
script:
15-
- export RUST_BACKTRACE=1
1640
- cargo test -vv -j 2 --features tensorflow_unstable
1741
- cargo run --example regression
1842
- cargo run --features tensorflow_unstable --example expressions
@@ -29,7 +53,6 @@ addons:
2953
- g++-4.9
3054
- gcc-4.9
3155
- oracle-java8-installer
32-
- python-numpy
3356
- swig
3457

3558
notifications:

0 commit comments

Comments
 (0)