mirror of
https://github.com/yewprint/yewprint
synced 2024-11-22 19:43:04 +00:00
Fix .travis.yml better
This commit is contained in:
parent
8cc26c0a52
commit
d4e2213f1c
1 changed files with 2 additions and 4 deletions
|
@ -1,6 +1,4 @@
|
||||||
sudo: false
|
|
||||||
language: rust
|
language: rust
|
||||||
cache: cargo
|
|
||||||
os:
|
os:
|
||||||
- linux
|
- linux
|
||||||
|
|
||||||
|
@ -16,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:
|
||||||
- '[ "$TRAVIS_BRANCH" != main ] && [ "$TRAVIS_BRANCH" != "$TRAVIS_TAG" ] && rustfmt --check **/*.rs'
|
- 'if [ "$TRAVIS_BRANCH" != main ] && [ "$TRAVIS_BRANCH" != "$TRAVIS_TAG" ]; then rustfmt --check **/*.rs; fi'
|
||||||
- '[ "$TRAVIS_BRANCH" != main ] && [ "$TRAVIS_BRANCH" != "$TRAVIS_TAG" ] && cargo clippy --all-targets --all-features -- -D warnings'
|
- '[ "$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
|
||||||
|
|
Loading…
Reference in a new issue