fix build inside Travis CI: disable sccache and "-v" for cargo
@@ -9,11 +9,7 @@ matrix:
- rust: nightly
os:
- linux
-cache:
- timeout: 180
- directories:
- - /home/travis/.cargo
- - /home/travis/.cache/sccache
+cache: cargo
addons:
apt:
sources:
@@ -26,16 +22,8 @@ addons:
- python3
- build-essential
- valgrind
-env: # specify the clang path for rust-bindgen
- - LIBCLANG_PATH=/usr/lib/llvm-3.9/lib
before_script:
- - wget https://github.com/mozilla/sccache/releases/download/0.2.5/sccache-0.2.5-x86_64-unknown-linux-musl.tar.gz
- - tar -xzvf sccache-0.2.5-x86_64-unknown-linux-musl.tar.gz
- - mv sccache-0.2.5-x86_64-unknown-linux-musl/sccache ~/.cargo/bin
- - sccache --version
- - du -s -c -h /home/travis/.cache/sccache
- - export RUSTC_WRAPPER=sccache
- - export SCCACHE_CACHE_SIZE=1G
+ - export LIBCLANG_PATH=/usr/lib/llvm-3.9/lib
- if [ "$TRAVIS_RUST_VERSION" == "beta" ]; then
rustup component add --toolchain beta rustfmt-preview;
fi
@@ -52,8 +40,7 @@ script:
echo "check code style";
cargo fmt --package rust_swig -- --write-mode diff;
fi
- - time cargo build --package rust_swig
- - time cargo test --package rust_swig
- - time cargo doc --package rust_swig
+ - time cargo build -v --package rust_swig
+ - time cargo test -v --package rust_swig
+ - time cargo doc -v --package rust_swig
- python3 ci_build_and_test.py
- - du -s -c -h /home/travis/.cache/sccache
