yewprint/.travis.yml

22 lines
611 B
YAML
Raw Normal View History

2020-09-20 19:05:33 +02:00
language: rust
os:
- linux
rust:
- stable
# NOTE: disable Travis' cache for now because it makes the Windows build fail
cache:
directories:
before_script:
- rustup component add rustfmt-preview clippy
# NOTE: will only run rustfmt and clippy if the branch is not main (and not for tags)
script:
2020-09-23 13:57:43 +02:00
- 'if [ "$TRAVIS_BRANCH" != main ] && [ "$TRAVIS_BRANCH" != "$TRAVIS_TAG" ]; then rustfmt --check **/*.rs; fi'
2020-09-23 13:59:48 +02:00
- 'if [ "$TRAVIS_BRANCH" != main ] && [ "$TRAVIS_BRANCH" != "$TRAVIS_TAG" ]; then cargo clippy --all-targets --all-features -- -D warnings; fi'
2020-09-20 19:05:33 +02:00
- cargo build
- cargo test
- cargo doc