mirror of
https://github.com/yewprint/yewprint
synced 2024-11-22 03:23:03 +00:00
Fix .travis.yml: there and back again
This commit is contained in:
parent
e975fa61d9
commit
d37ffa06c7
1 changed files with 2 additions and 2 deletions
|
@ -14,8 +14,8 @@ before_script:
|
|||
|
||||
# NOTE: will only run rustfmt and clippy if the branch is not main (and not for tags)
|
||||
script:
|
||||
- 'if [ "$TRAVIS_BRANCH" != main ] && [ "$TRAVIS_BRANCH" != "$TRAVIS_TAG" ]; then rustfmt --check **/*.rs; fi'
|
||||
- 'if [ "$TRAVIS_BRANCH" != main ] && [ "$TRAVIS_BRANCH" != "$TRAVIS_TAG" ]; then cargo clippy --all-targets --all-features -- -D warnings; fi'
|
||||
- 'if [ -n "$TRAVIS_PULL_REQUEST" ]; then rustfmt --check **/*.rs; fi'
|
||||
- 'if [ -n "$TRAVIS_PULL_REQUEST" ]; then cargo clippy --all-targets --all-features -- -D warnings; fi'
|
||||
- cargo build
|
||||
- cargo test
|
||||
- cargo doc
|
||||
|
|
Loading…
Reference in a new issue