mirror of
https://github.com/yewprint/yewprint
synced 2024-11-22 03:23:03 +00:00
20 lines
530 B
YAML
20 lines
530 B
YAML
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:
|
|
- '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 test --all-features
|
|
- cargo doc
|