mirror of
https://github.com/yewprint/yewprint
synced 2024-11-22 03:23:03 +00:00
Fix .travis.yml
This commit is contained in:
parent
be7614df9d
commit
b0c3a096dc
1 changed files with 2 additions and 4 deletions
|
@ -16,10 +16,8 @@ before_script:
|
|||
|
||||
# NOTE: will only run rustfmt and clippy if the branch is not main (and not for tags)
|
||||
script:
|
||||
- [ "$TRAVIS_BRANCH" != main ] && [ "$TRAVIS_BRANCH" != "$TRAVIS_TAG" ] && \
|
||||
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" ] && rustfmt --check **/*.rs'
|
||||
- '[ "$TRAVIS_BRANCH" != main ] && [ "$TRAVIS_BRANCH" != "$TRAVIS_TAG" ] && cargo clippy --all-targets --all-features -- -D warnings'
|
||||
- cargo build
|
||||
- cargo test
|
||||
- cargo doc
|
||||
|
|
Loading…
Reference in a new issue