1language: rust 2rust: 3 - 1.40.0 4 - stable 5 - beta 6 - nightly 7matrix: 8 allow_failures: 9 - rust: nightly 10sudo: false 11before_script: 12 - rustup component add rustfmt 13 - rustup target add thumbv7em-none-eabihf # Any target that does not have a standard library will do 14script: 15 - cargo fmt --all -- --check 16 - (rustup component add clippy && cargo clippy --all -- -D clippy::all) || true 17 - cargo build 18 - cargo test 19 - > 20 [[ $TRAVIS_RUST_VERSION == "1.31.0" ]] 21 || cargo build --no-default-features --features alloc --target thumbv7em-none-eabihf 22 # Test we can build a platform that does not have std. 23 - cargo test --no-default-features --lib --tests # Run no_std tests 24 - > 25 [[ $TRAVIS_RUST_VERSION == "1.31.0" ]] 26 || cargo build --no-default-features --features alloc 27 - cargo build --features unsealed_read_write # The crate should still build when the unsealed_read_write feature is enabled. 28 - cargo build --no-default-features --features unsealed_read_write # The crate should still build when the unsealed_read_write feature is enabled and std disabled. 29