aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorHaibo Huang <hhb@google.com>2020-08-11 18:27:35 -0700
committerJoel Galenson <jgalenson@google.com>2020-09-28 16:23:08 -0700
commitb9330f0c56e6a7994bd421b0b722496b28b7bd89 (patch)
tree8d47b702b6ae19227400d2a247851c68ac796059 /.travis.yml
parent96174d02d72c501acba134d91caa3ad4fd977604 (diff)
downloadsmallvec-b9330f0c56e6a7994bd421b0b722496b28b7bd89.tar.gz
Upgrade rust/crates/smallvec to 1.4.2
Test: None Change-Id: I26b4cef675b3dba23235131a9d33d46372c06d9c
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml39
1 files changed, 23 insertions, 16 deletions
diff --git a/.travis.yml b/.travis.yml
index 4454c72..7542cda 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -19,19 +19,26 @@ matrix:
env: DO_FUZZ=true
- rust: stable
env: DO_FUZZ=true
-script: |
- cargo build --verbose &&
- cargo test --verbose &&
- cargo test --verbose --features serde &&
- ([ $TRAVIS_RUST_VERSION != nightly ] || cargo check --verbose --no-default-features) &&
- ([ $TRAVIS_RUST_VERSION != nightly ] || cargo test --verbose --features union) &&
- ([ $TRAVIS_RUST_VERSION != nightly ] || cargo test --verbose --all-features) &&
- ([ $TRAVIS_RUST_VERSION != nightly ] || cargo bench --verbose bench) &&
- ([ $TRAVIS_RUST_VERSION != nightly ] || bash ./scripts/run_miri.sh) &&
- if [ "$DO_FUZZ" = true ]
- then
- (
- cd fuzz
- ./travis-fuzz.sh
- )
- fi
+script:
+ - |
+ if [[ "$TRAVIS_RUST_VERSION" == stable ]]
+ then
+ rustup component add rustfmt
+ cargo fmt --all -- --check
+ fi
+ - |
+ cargo build --verbose &&
+ cargo test --verbose &&
+ cargo test --verbose --features serde &&
+ ([ $TRAVIS_RUST_VERSION != nightly ] || cargo check --verbose --no-default-features) &&
+ ([ $TRAVIS_RUST_VERSION != nightly ] || cargo test --verbose --features union) &&
+ ([ $TRAVIS_RUST_VERSION != nightly ] || cargo test --verbose --all-features) &&
+ ([ $TRAVIS_RUST_VERSION != nightly ] || cargo bench --verbose bench) &&
+ ([ $TRAVIS_RUST_VERSION != nightly ] || bash ./scripts/run_miri.sh) &&
+ if [ "$DO_FUZZ" = true ]
+ then
+ (
+ cd fuzz
+ ./travis-fuzz.sh
+ )
+ fi