From 6c8997ba8df5d2dc254e803d0fec30df027290c4 Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Sun, 24 Mar 2019 10:30:53 -0700 Subject: [PATCH] .travis.yml: Check rustfmt, clippy, docs build, WASM + no_std targets --- .travis.yml | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d1b930d..aedb939 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,12 +2,46 @@ language: rust cache: cargo rust: + - 1.31.0 - stable - beta - nightly +install: + - rustup component add rustfmt + - rustup component add clippy + - rustup target add thumbv7em-none-eabihf + - rustup target add wasm32-unknown-unknown + +script: + - cargo test --verbose --release + # Can't use `--no-default-features` with a workspace. See rust-lang/cargo#4753 + - cd signature-crate && cargo build --no-default-features --release + matrix: allow_failures: - rust: nightly + include: + - name: "Rust: stable (thumbv7em-none-eabihf)" + rust: stable + script: + - cd signature-crate && cargo build --target thumbv7em-none-eabihf --no-default-features --release + - name: "Rust: stable (wasm32-unknown-unknown)" + rust: stable + script: + - cd signature-crate && cargo build --target wasm32-unknown-unknown --no-default-features --release + - name: rustfmt + rust: stable + script: + - cargo fmt --all -- --check + - name: clippy + rust: stable + script: + - cargo clippy --all + - name: docs + script: + - cargo doc --all --no-deps -script: cargo test --verbose --all +branches: + only: + - master