language: rust
rust:
- 1.31.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 --all-features -- -D clippy::all) || exit 0
- cargo build
- cargo test
- cargo build --no-default-features --target thumbv7em-none-eabihf - cargo test --no-default-features --lib --tests - cargo build --features unsealed_read_write - cargo build --no-default-features --features unsealed_read_write