Fix .travis.yml again

This commit is contained in:
Cecile Tonglet 2020-09-23 13:59:48 +02:00
parent d4e2213f1c
commit e975fa61d9

View file

@ -15,7 +15,7 @@ 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:
- 'if [ "$TRAVIS_BRANCH" != main ] && [ "$TRAVIS_BRANCH" != "$TRAVIS_TAG" ]; then rustfmt --check **/*.rs; fi' - 'if [ "$TRAVIS_BRANCH" != main ] && [ "$TRAVIS_BRANCH" != "$TRAVIS_TAG" ]; then rustfmt --check **/*.rs; fi'
- '[ "$TRAVIS_BRANCH" != main ] && [ "$TRAVIS_BRANCH" != "$TRAVIS_TAG" ]; then cargo clippy --all-targets --all-features -- -D warnings; fi' - 'if [ "$TRAVIS_BRANCH" != main ] && [ "$TRAVIS_BRANCH" != "$TRAVIS_TAG" ]; then cargo clippy --all-targets --all-features -- -D warnings; fi'
- cargo build - cargo build
- cargo test - cargo test
- cargo doc - cargo doc