forked from tensorflow/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
59 lines (48 loc) · 1.24 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
language: rust
sudo: false
dist: trusty # still in beta, but required for the prebuilt TF binaries
cache:
cargo: true
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:
# 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
script:
- cargo test -vv -j 2 --features tensorflow_unstable
- cargo run --example regression
- cargo run --features tensorflow_unstable --example expressions
- cargo doc -vv --features tensorflow_unstable
- # TODO(#66): Re-enable: (cd tensorflow-sys && cargo test -vv -j 1)
- (cd tensorflow-sys && cargo doc -vv)
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
- gcc-4.9
- oracle-java8-installer
- swig
notifications:
email: false