fork of https://github.com/poanetwork/threshold_crypto for the needs of nextgraph.org
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.5 KiB
36 lines
1.5 KiB
language: rust
|
|
rust:
|
|
- stable
|
|
cache:
|
|
cargo: true
|
|
timeout: 1200
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- unzip
|
|
before_install:
|
|
# 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/
|
|
env:
|
|
global:
|
|
- RUST_BACKTRACE=1
|
|
- 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:
|
|
- 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
|
|
|