build: Build test all supported build configurations on Travis

Treat warnings as errors for these test builds.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2019-09-16 15:06:54 +01:00 committed by Sebastien Boeuf
parent 3bc11a4a2e
commit f622a76597

View File

@ -8,8 +8,10 @@ before_script:
- rustup component add rustfmt
script:
- cargo build --release
- cargo build --release --no-default-features
- cargo rustc -- -D warnings
- cargo rustc --no-default-features --features "pci" -- -D warnings
- cargo rustc --no-default-features --features "pci,acpi" -- -D warnings
- cargo rustc --no-default-features --features "mmio" -- -D warnings
- cargo test
- cargo clippy --all-targets --all-features -- -D warnings
- find . -name "*.rs" | xargs rustfmt --check