Add build variants with feature trace, fix build for those variants.

This commit is contained in:
Alex Helfet 2017-12-24 21:35:18 +00:00
commit a8a00555b5
2 changed files with 9 additions and 7 deletions

View file

@ -1,12 +1,13 @@
#!/usr/bin/env bash
set -ex
# A simple build script to run locally.
# A simple build script to run locally before pushing.
for tc in stable beta nightly; do
for tc in nightly stable beta; do
echo "Toolchain: ${tc}";
rustup toolchain update ${tc};
cargo +${tc} test --verbose;
cargo +${tc} test --verbose --no-default-features;
cargo +${tc} test --verbose --features=trace;
cargo +${tc} doc --verbose;
done

View file

@ -6,4 +6,5 @@ set -x
cargo test --verbose;
cargo test --verbose --no-default-features;
cargo test --verbose --no-default-features --features=trace;
cargo doc --verbose;