mirror of https://github.com/poanetwork/hbbft.git
Merge pull request #133 from poanetwork/mbr-travis-ci-stable
Tweak CI, now runs stable.
This commit is contained in:
commit
e73b78c773
34
.travis.yml
34
.travis.yml
|
@ -1,24 +1,36 @@
|
||||||
language: rust
|
language: rust
|
||||||
rust:
|
rust:
|
||||||
- nightly-2018-05-19
|
- stable
|
||||||
cache: cargo
|
cache:
|
||||||
|
cargo: true
|
||||||
|
timeout: 1200
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
- unzip
|
- unzip
|
||||||
before_install:
|
before_install:
|
||||||
- rustup component add rustfmt-preview
|
# The Rust stable toolchain is already installed, ${RUST_NEXT} is added to
|
||||||
- rustfmt --version
|
# provide `cargo clippy` and `cargo fmt`.
|
||||||
- cargo install clippy -f --vers=0.0.202
|
- rustup toolchain install ${RUST_NEXT}
|
||||||
|
- rustup component add --toolchain=${RUST_NEXT} rustfmt-preview clippy-preview
|
||||||
|
# Some symlinking is still necessary for clippy to function properly.
|
||||||
|
- ln -s ${HOME}/.rustup/toolchains/${RUST_NEXT}-x86_64-unknown-linux-gnu/bin/clippy-driver ${HOME}/.rustup/toolchains/${RUST_NEXT}-x86_64-unknown-linux-gnu/bin/cargo-clippy $HOME/.cargo/bin/
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- RUST_BACKTRACE=1
|
- RUST_BACKTRACE=1
|
||||||
- RUSTFLAGS="-D warnings"
|
- RUSTFLAGS="-D warnings"
|
||||||
|
# Note: Currently (as of 2018-07-13), `clippy-preview` is only in the nightly
|
||||||
|
# release. A version of `rustfmt` that supports the `--check` option
|
||||||
|
# is also not in stable yet.
|
||||||
|
#
|
||||||
|
# A Clear migration path is swapping out `nightly-2018-07-13` with
|
||||||
|
# `beta` after the stable release of Rust 1.28; and finally migrating
|
||||||
|
# everything to `stable` at Rust 1.29.
|
||||||
|
- RUST_NEXT=nightly-2018-07-13
|
||||||
script:
|
script:
|
||||||
- cargo clippy -- -D clippy
|
- cargo +${RUST_NEXT} clippy -- --deny clippy
|
||||||
- cargo clippy --tests -- -D clippy
|
- cargo +${RUST_NEXT} clippy --tests -- --deny clippy
|
||||||
- cargo clippy --all-features -- -D clippy
|
- cargo +${RUST_NEXT} clippy --all-features -- --deny clippy
|
||||||
- cargo clippy --all-features --tests -- -D clippy
|
- cargo +${RUST_NEXT} clippy --all-features --tests -- --deny clippy
|
||||||
- cargo fmt -- --check
|
- cargo +${RUST_NEXT} fmt -- --check
|
||||||
- cargo check --tests --all-features
|
|
||||||
- cargo test --all-features --release
|
- cargo test --all-features --release
|
||||||
|
|
Loading…
Reference in New Issue