mirror of
https://github.com/yewprint/yewprint
synced 2024-11-22 11:33:04 +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)
|
# 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
|
||||||
|
|
Loading…
Reference in a new issue