mirror of
https://github.com/yewprint/yewprint
synced 2025-02-16 20:18:25 +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)
|
# 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 [ -n "$TRAVIS_PULL_REQUEST" ]; 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 cargo clippy --all-targets --all-features -- -D warnings; fi'
|
||||||
- cargo build
|
- cargo build
|
||||||
- cargo test
|
- cargo test
|
||||||
- cargo doc
|
- cargo doc
|
||||||
|
|
Loading…
Add table
Reference in a new issue