Fail CI build when rustfmt makes changes
@@ -3,7 +3,10 @@ rust: stable
os:
- linux
sudo: required
-cache: cargo
+cache:
+ cargo: true
+ directories:
+ - $HOME/.kcov
addons:
apt:
@@ -20,9 +23,15 @@ env:
global:
- RUST_BACKTRACE=1
- RUSTFLAGS="-C link-dead-code"
+ - CARGO_MAKE_KCOV_INSTALLATION_DIRECTORY=$HOME/.kcov
+
+install:
+ - rustup component add rustfmt
script:
- - cargo install --debug --force cargo-make
+ - mkdir $HOME/.kcov
+ - which cargo-make || cargo install cargo-make
+ - cargo fmt --check --all
- travis_wait 90 cargo build -j 1
- travis_wait 90 cargo test -j 1
- sudo /home/travis/.cargo/bin/cargo make --no-workspace workspace-coverage
\ No newline at end of file
