Make rustfmt job separate
@@ -13,20 +13,17 @@ matrix:
# OSX release build
- env: DEPLOY=1 TARGET=x86_64-apple-darwin OPENSSL_STATIC=yes
- before_script:
- - rustup component add rustfmt
+ name: Mac release
script:
- - cargo fmt --all -- --check
- cargo build --locked --release --target $TARGET
os: osx
# Linux release build
- env: DEPLOY=1 TARGET=x86_64-unknown-linux-musl OPENSSL_STATIC=yes
+ name: Linux musl
before_script:
- rustup target add $TARGET
- - rustup component add rustfmt
script:
- - cargo fmt --all -- --check
- cargo build --locked --release --target $TARGET
addons:
apt:
@@ -37,9 +34,18 @@ matrix:
allow_failures:
- rust: nightly
+jobs:
+ include:
+ - rust: stable
+ name: rustfmt
+ env: PEDANTIC_CHECK=1
script:
- rustup component add rustfmt
- cargo fmt --all -- --check
+ allow_failures:
+ - env: PEDANTIC_CHECK=1
+
+script:
- cargo build --release --locked --verbose
- RUST_BACKTRACE=1 cargo test --release --locked --all --verbose
# Requires PR #321
