@@ -9,6 +9,15 @@ function run {
9
9
echo
10
10
}
11
11
12
+ function clean {
13
+ if [ " $CI " = " true" ]; then
14
+ rm -rf target/debug/examples
15
+ rm -rf target/debug/incremental
16
+ fi
17
+ df -h
18
+ du -sh target/debug/build/*
19
+ }
20
+
12
21
# Make sure the Tensorflow version in the -sys build script matches the one in
13
22
# the run-valgrind script.
14
23
version_build_script=` grep " const VERSION" tensorflow-sys/build.rs | sed ' s|.*"\([^"]*\)";|\1|g' `
@@ -51,28 +60,40 @@ export RUSTFLAGS="-Awarnings"
51
60
# Keras format, which the C API can't read:
52
61
# https://github.com/tensorflow/tensorflow/issues/70514
53
62
TF_USE_LEGACY_KERAS=1 run python3 examples/mobilenetv3/create_model.py
63
+ run df -h
54
64
# TODO(#391): Re-enable: (cd test_resources/library && ./build-test-op)
55
65
run cargo fmt --all -- --check
66
+ clean
56
67
run cargo test -vv -j 2
68
+ clean
57
69
run cargo test -vv -j 2 --features eager
70
+ clean
58
71
run cargo test -vv -j 2 --features tensorflow_unstable
72
+ clean
59
73
run cargo test -vv -j 2 --features ndarray
74
+ clean
60
75
run cargo run --example regression
76
+ clean
61
77
run cargo run --example xor
78
+ clean
62
79
run cargo run --features tensorflow_unstable --example expressions
80
+ clean
63
81
run cargo run --features eager --example mobilenetv3
82
+ clean
64
83
run cargo doc --features experimental,tensorflow_unstable,ndarray,eager
84
+ clean
65
85
run cargo doc --features experimental,tensorflow_unstable,ndarray,eager,private-docs-rs
86
+ clean
66
87
# TODO(#66): Re-enable: (cd tensorflow-sys && cargo test -vv -j 1)
67
- (cd tensorflow-sys && run cargo run --example multiplication)
68
- (cd tensorflow-sys && run cargo run --example tf_version)
69
- (cd tensorflow-sys && run cargo doc -vv)
88
+ (cd tensorflow-sys && run cargo run --example multiplication && clean )
89
+ (cd tensorflow-sys && run cargo run --example tf_version && clean )
90
+ (cd tensorflow-sys && run cargo doc -vv && clean )
70
91
71
- run cargo clippy
72
- (cd tensorflow-sys && run cargo clippy)
73
- (cd tensorflow-op-codegen && run cargo clippy)
74
- (cd tensorflow-proto-codegen && run cargo clippy)
75
- (cd tensorflow-internal-macros && run cargo clippy)
92
+ # run cargo clippy
93
+ # (cd tensorflow-sys && run cargo clippy)
94
+ # (cd tensorflow-op-codegen && run cargo clippy)
95
+ # (cd tensorflow-proto-codegen && run cargo clippy)
96
+ # (cd tensorflow-internal-macros && run cargo clippy)
76
97
77
98
for file in $( find . -name target -prune -o -name ' *.rs' -print) ; do
78
99
bad_deprecations=" $( rustfmt --emit stdout --config max_width=1000 " $file " | grep ' #\[deprecated' | grep -E -v ' ([^"\\]|\\.|"([^"\\]|\\.)*")*since' || true) "
@@ -88,3 +109,6 @@ for file in $(find . -name target -prune -o -name '*.rs' -print); do
88
109
exit 1
89
110
fi
90
111
done
112
+
113
+ df -h
114
+ du -sh target/debug/build/*
0 commit comments