-
Notifications
You must be signed in to change notification settings - Fork 423
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
Increase Travis coverage #78
Conversation
…urce and pre-built
See Travis' documentation: https://docs.travis-ci.com/user/languages/python/#pip Should fix: https://travis-ci.org/nbigaouette-eai/rust/jobs/212227182#L808-L814
Yeah, you won't be able to build from source on Travis. One of the driving reasons for getting pre-compiled binaries into the build was to make Travis useful again. It simply takes too long to build from source, and Travis times out. (Or if you run with too many parallel compilations, it'll fail with |
- 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 |
There was a problem hiding this comment.
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.
Thanks! |
This PR adds will set Travis to follow Rust release train (stable/beta/nightly) on both Linux and OSX to increase the test platform coverage.
This should open the door to the addition of more tests, for example valgrind or sanitizers as described in #69.
Notes:
TF_RUST_BUILD_FROM_SRC=true
) is explicitly disabled as I have not been able to properly do so; bazel fails withServer finished RPC without an explicit exit code
(see for example here, more specifically job 14.1);env.global
instead of explicitlyexport
ing them;fast_finish
will let builds decide on success or failure even if those withallow_failures
are not finished.pip
instead ofapt
as it's the recommended way of doing so.