File tree 1 file changed +28
-5
lines changed
1 file changed +28
-5
lines changed Original file line number Diff line number Diff line change @@ -5,14 +5,38 @@ dist: trusty # still in beta, but required for the prebuilt TF binaries
5
5
cache :
6
6
cargo : true
7
7
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
+
9
33
10
34
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
13
38
14
39
script :
15
- - export RUST_BACKTRACE=1
16
40
- cargo test -vv -j 2 --features tensorflow_unstable
17
41
- cargo run --example regression
18
42
- cargo run --features tensorflow_unstable --example expressions
@@ -29,7 +53,6 @@ addons:
29
53
- g++-4.9
30
54
- gcc-4.9
31
55
- oracle-java8-installer
32
- - python-numpy
33
56
- swig
34
57
35
58
notifications :
You can’t perform that action at this time.
0 commit comments