language: rust
rust:
- 1.40.0
- stable
- beta
- nightly
matrix:
allow_failures:
- rust: nightly
sudo: false
before_script:
- rustup component add rustfmt
- rustup target add thumbv7em-none-eabihf script:
- cargo fmt --all -- --check
- (rustup component add clippy && cargo clippy --all -- -D clippy::all) || true
- cargo build
- cargo test
- >
[[ $TRAVIS_RUST_VERSION == "1.31.0" ]]
|| cargo build --no-default-features --features alloc --target thumbv7em-none-eabihf
# Test we can build a platform that does not have std.
- cargo test --no-default-features --lib --tests - >
[[ $TRAVIS_RUST_VERSION == "1.31.0" ]]
|| cargo build --no-default-features --features alloc
- cargo build --features unsealed_read_write - cargo build --no-default-features --features unsealed_read_write