language: rust
rust:
- nightly
- beta
- stable
- 1.36.0
script:
- |
if [[ $TRAVIS_RUST_VERSION == "stable" ]]
then
rustup component add rustfmt
cargo fmt --all -- --check || (echo "Please reformat your code with 'cargo fmt'"; false)
fi
- cargo build --verbose
- cargo test --verbose
- cargo doc --verbose
- cargo test --features dummy_match_byte
- if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then cargo test --features bench; fi
- if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then cargo test --features "bench dummy_match_byte"; fi
- cd macros && cargo build --verbose