2019-01-22 17:01:33 -05:00
|
|
|
sudo: false
|
|
|
|
language: rust
|
|
|
|
rust:
|
|
|
|
- stable
|
|
|
|
- beta
|
|
|
|
- nightly
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- env: RUSTFMT
|
2019-06-14 16:26:13 -04:00
|
|
|
rust: 1.35.0 # `stable`: Locking down for consistent behavior
|
2019-01-22 17:01:33 -05:00
|
|
|
install:
|
|
|
|
- rustup component add rustfmt
|
|
|
|
script:
|
2019-08-10 19:23:50 -04:00
|
|
|
- cargo fmt --all -- --check
|
2019-10-05 09:30:30 -04:00
|
|
|
- env: CodeGen
|
|
|
|
rust: 1.35.0 # `stable`: Locking down for consistent behavior
|
|
|
|
install:
|
|
|
|
- rustup component add rustfmt
|
|
|
|
script:
|
|
|
|
- cargo run --package typos-codegen -- --input typos-dict/assets/words.csv --output typos-dict/src/dict_codegen.rs --check
|
2019-01-22 17:01:33 -05:00
|
|
|
- env: RUSTFLAGS="-D warnings"
|
2019-06-14 16:26:13 -04:00
|
|
|
rust: 1.35.0 # `stable`: Locking down for consistent behavior
|
2019-01-22 17:01:33 -05:00
|
|
|
install:
|
|
|
|
script:
|
2019-08-10 19:23:50 -04:00
|
|
|
- cargo check --tests --all
|
2019-01-22 17:01:33 -05:00
|
|
|
- env: CLIPPY
|
2019-06-14 16:26:13 -04:00
|
|
|
rust: 1.35.0 # `stable`: Locking down for consistent behavior
|
2019-01-22 17:01:33 -05:00
|
|
|
install:
|
|
|
|
- rustup component add clippy
|
|
|
|
script:
|
2019-08-10 19:23:50 -04:00
|
|
|
- cargo clippy --all-features --all
|
2019-01-22 17:01:33 -05:00
|
|
|
- env: BENCH
|
|
|
|
rust: nightly
|
|
|
|
script:
|
2019-08-10 19:23:50 -04:00
|
|
|
- cargo bench --all
|
2019-01-22 17:01:33 -05:00
|
|
|
|
|
|
|
install:
|
|
|
|
- rustc -Vv
|
|
|
|
- cargo -V
|
|
|
|
- export PATH=$HOME/.cargo/bin:$PATH
|
|
|
|
|
|
|
|
script:
|
2019-08-10 19:23:50 -04:00
|
|
|
- cargo check --verbose --all
|
|
|
|
- cargo test --verbose --all
|
2019-01-22 17:01:33 -05:00
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
# Release tags
|
|
|
|
- /^v\d+\.\d+\.\d+.*$/
|
|
|
|
- master
|
|
|
|
|
|
|
|
# Need to cache the whole `.cargo` directory to keep .crates.toml for
|
|
|
|
# cargo-update to work
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- /home/travis/.cargo
|
|
|
|
# But don't cache the cargo registry
|
|
|
|
before_cache:
|
|
|
|
- rm -rf $HOME/.cargo/registry
|
|
|
|
# Travis can't cache files that are not readable by "others"
|
|
|
|
- chmod -R a+r $HOME/.cargo
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: never
|