-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy path.travis.yml
More file actions
18 lines (18 loc) · 740 Bytes
/
Copy path.travis.yml
File metadata and controls
18 lines (18 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
os:
- osx
- linux
language: rust
rust:
- stable
- beta
- nightly
script:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo ln -s -f $(which clang) /usr/bin/gcc ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo ln -s -f $(which clang++) /usr/bin/g++ ; fi
- gcc -v && g++ -v
- cargo build --verbose
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then cargo test -- --nocapture ; fi
- cargo build --verbose --features debug_tflite,no_micro
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then cargo test --features debug_tflite,no_micro -- --nocapture ; fi
# Make sure package size is under 10 MB
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then cargo package --verbose && [ $(stat -c %s target/package/tflite-*.crate) -le 10485760 ] ; fi