Update Travis CI configure and include IRC notifications.
This commit is contained in:
parent
fa771877f7
commit
c3aa9bd952
44
.travis.yml
44
.travis.yml
@ -1,38 +1,20 @@
|
||||
language: "rust"
|
||||
cache: "cargo"
|
||||
rust:
|
||||
- 1.34.2
|
||||
- stable
|
||||
- beta
|
||||
- nightly
|
||||
jobs:
|
||||
allow_failures:
|
||||
- rust: nightly
|
||||
fast_finish: true
|
||||
|
||||
before_script:
|
||||
- rustup component add rustfmt
|
||||
- |
|
||||
if [ "$TRAVIS_RUST_VERSION" != "1.34.2" ]; then
|
||||
rustup component add clippy
|
||||
fi
|
||||
- |
|
||||
if [ "$TRAVIS_RUST_VERSION" == "stable" ]; then
|
||||
cargo install --force cargo-audit
|
||||
fi
|
||||
- cargo generate-lockfile
|
||||
- "rustup component add rustfmt"
|
||||
- "rustup component add clippy"
|
||||
- "cargo install --force cargo-audit"
|
||||
- "cargo generate-lockfile"
|
||||
script:
|
||||
- |
|
||||
if [ "$TRAVIS_RUST_VERSION" == "stable" ]; then
|
||||
cargo audit
|
||||
fi
|
||||
- cargo fmt -- --check
|
||||
- |
|
||||
if [ "$TRAVIS_RUST_VERSION" != "1.34.2" ]; then
|
||||
cargo clippy --all-targets --all-features -- -D warnings
|
||||
fi
|
||||
- cargo build --verbose
|
||||
- cargo test --verbose
|
||||
- "cargo audit"
|
||||
- "cargo fmt --all -- --check"
|
||||
- "cargo clippy --all-targets --all-features -- -D warnings"
|
||||
- "cargo build --verbose"
|
||||
- "cargo test --verbose"
|
||||
if: "type != push OR (tag IS blank AND branch = master)"
|
||||
notifications:
|
||||
email: false
|
||||
irc:
|
||||
channels:
|
||||
- secure: "Z4Bo39O8Zl/xGJ3A3P08sKO12YMpQOMwwWou9oZxYGnaVQM/1hlpgMrPKtif4v+681SGMuUoA97P0Tr93oSSGqyJalN2dcft9vOiFa1Izo5nVuJ1+8trTRxV+3oE7X30ixh/jWg4oXPrfLbKMv1Bp7htjffNQQcsh2RrPjmhK3PtuqTLeY0OFm6uKIa/4fmz2d2PV+V2GRhFvI4b4HRLAQDRbFrD3MUReSqqWCpAdnyswKOVZMcCNZHuBpPdZK+lARopZsruN5LcDi787CRel79K+Cmqif1jyGgwQusjrP2c4Bjdi6SGCy2V5TNMYgYrp1ox/gLaHNC3A1aHZYmbHXI908aANbt860Y/1N0ax3CbEkUFFSfiEjnw816BTJ61/kccMEUN6nYpbj/hkyNApCXYlp65+FAx2NaQCV6obvWh7ymF3Mp8v1OvidEKbhvDqhuGQ62ZZGWVUpzKAe0QRQ2NFFPm53nOrcVHdR4ZMKdGrsgAgpvX1d92JmChqlZbEjbCZRs+KHj1Bkfwkousu9+VNLQatc+VwiqXXHnOi9jCVecqmtLnioP3UvYBEQKsh2gv5GhUwluqrSMNfy3H51Zg/lLMHQHUZw5XZgb7nenCBcrmSl4h75+z1lUdkE5UQn3WcjVOVsbwS/qpHHJ+CRKnpcSBqIE1pb0BFdI5/MU="
|
||||
use_notice: true
|
||||
|
Loading…
x
Reference in New Issue
Block a user