Fix .travis.yml

This commit is contained in:
Cecile Tonglet 2020-09-23 09:00:35 +02:00
parent be7614df9d
commit b0c3a096dc

View file

@ -16,10 +16,8 @@ before_script:
# NOTE: will only run rustfmt and clippy if the branch is not main (and not for tags) # NOTE: will only run rustfmt and clippy if the branch is not main (and not for tags)
script: script:
- [ "$TRAVIS_BRANCH" != main ] && [ "$TRAVIS_BRANCH" != "$TRAVIS_TAG" ] && \ - '[ "$TRAVIS_BRANCH" != main ] && [ "$TRAVIS_BRANCH" != "$TRAVIS_TAG" ] && rustfmt --check **/*.rs'
rustfmt --check **/*.rs - '[ "$TRAVIS_BRANCH" != main ] && [ "$TRAVIS_BRANCH" != "$TRAVIS_TAG" ] && cargo clippy --all-targets --all-features -- -D warnings'
- [ "$TRAVIS_BRANCH" != main ] && [ "$TRAVIS_BRANCH" != "$TRAVIS_TAG" ] && \
cargo clippy --all-targets --all-features -- -D warnings
- cargo build - cargo build
- cargo test - cargo test
- cargo doc - cargo doc