Skip to content

Commit

Permalink
Don't test bootstrap on nightly to avoid rustfmt breakage
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmehall committed Oct 6, 2019
1 parent 04774f0 commit c08ff13
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ rust:
- nightly

script:
- rustup component add rustfmt
- ./bootstrap.sh
- git diff --exit-code # Check that src/grammar.rs is updated to match src/grammar.rustpeg
# 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)

0 comments on commit c08ff13

Please sign in to comment.