mirror of https://github.com/poanetwork/hbbft.git
42 lines
1.7 KiB
YAML
42 lines
1.7 KiB
YAML
language: rust
|
|
rust:
|
|
- stable
|
|
cache:
|
|
cargo: true
|
|
timeout: 1200
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- unzip
|
|
before_install:
|
|
- if [ "$TRAVIS_SECURE_ENV_VARS" = true ]; then
|
|
openssl aes-256-cbc -K $encrypted_ab99677a831c_key -iv $encrypted_ab99677a831c_iv -in deploy_rsa.enc -out deploy_rsa -d;
|
|
fi
|
|
# The Rust stable toolchain is already installed, ${RUST_NEXT} is added to
|
|
# provide `cargo clippy` and `cargo fmt`.
|
|
- 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 -sf ${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/
|
|
# after_failure:
|
|
# # Outputs the syslog after a failed build, e.g. to debug `SIGILL` occurrences.
|
|
# # Unfortunately this is likely to disable container-based travis images,
|
|
# # causing a CI slowdown, so this option is commented out by default. It can
|
|
# # be enabled per-branch to debug issues.
|
|
# - sudo tail -n 250 /var/log/syslog
|
|
env:
|
|
global:
|
|
- RUST_BACKTRACE=1
|
|
- RUSTFLAGS="-D warnings"
|
|
# Note: `beta` should be removed along with `RUST_NEXT` after the 1.28
|
|
# stable release on 2018-09-13.
|
|
- RUST_NEXT=beta
|
|
- MLOCK_SECRETS=false
|
|
script:
|
|
- cargo +${RUST_NEXT} clippy -- --deny clippy
|
|
- cargo +${RUST_NEXT} clippy --tests --examples -- --deny clippy
|
|
- cargo +${RUST_NEXT} clippy --all-features -- --deny clippy
|
|
- cargo +${RUST_NEXT} clippy --all-features --tests -- --deny clippy
|
|
- cargo +${RUST_NEXT} fmt -- --check
|
|
- cargo test --all-features --release
|