Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase Travis coverage #78

Merged
merged 8 commits into from
Mar 21, 2017
33 changes: 28 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,38 @@ dist: trusty # still in beta, but required for the prebuilt TF binaries
cache:
cargo: true

rust: stable
rust:
- stable
- beta
- nightly

env:
global:
- RUST_BACKTRACE=1
- CC="gcc-4.9"
- CXX="g++-4.9"
matrix:
# Building TensorFlow in Travis is not working properly, probably due
# to resources constraints.
# - TF_RUST_BUILD_FROM_SRC=true
- TF_RUST_BUILD_FROM_SRC=false

os:
- linux
- osx

matrix:
fast_finish: true
allow_failures:
- rust: nightly


install:
- export CC="gcc-4.9" CXX="g++-4.9"
- source travis-ci/install.sh
# Install dependencies only if we build tensorflow from source.
- if [[ "$TF_RUST_BUILD_FROM_SRC" == "true" ]]; then source travis-ci/install.sh; fi
- if [[ "$TF_RUST_BUILD_FROM_SRC" == "true" ]]; then pip install --user numpy; fi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call; we were wasting build time installing things we didn't need.


script:
- export RUST_BACKTRACE=1
- cargo test -vv -j 2 --features tensorflow_unstable
- cargo run --example regression
- cargo run --features tensorflow_unstable --example expressions
Expand All @@ -29,7 +53,6 @@ addons:
- g++-4.9
- gcc-4.9
- oracle-java8-installer
- python-numpy
- swig

notifications:
Expand Down