language: rust
rust:
- stable
- beta
- nightly
script:
# Rustfmt is often missing on nightly
- |
if [ $TRAVIS_RUST_VERSION != "nightly" ]; then
rustup component add rustfmt
./bootstrap.sh
# Check that src/grammar.rs is updated to match src/grammar.rustpeg
git diff --exit-code
fi
- cargo test --all
- (test $TRAVIS_RUST_VERSION != "nightly" || cargo bench)