2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-03-31 13:36:41 +00:00

Correct boolean inversion and overrided env vars

This commit is contained in:
James Munns 2019-08-27 16:45:32 +02:00
parent b39c720681
commit 192c9683d9

View file

@ -1,28 +1,26 @@
language: rust language: rust
env:
- RUSTFLAGS="-D warnings"
matrix: matrix:
fast_finish: true fast_finish: true
include: include:
- rust: nightly - rust: nightly
os: linux os: linux
env: BUILD_DOCS=1 BUILD_BOOK=1 env: RUSTFLAGS="-D warnings" BUILD_DOCS=1 BUILD_BOOK=1
- rust: nightly - rust: nightly
os: osx os: osx
osx_image: xcode9.2 osx_image: xcode9.2
env: BUILD_DOCS=1 env: RUSTFLAGS="-D warnings" BUILD_DOCS=1
- rust: nightly-x86_64-pc-windows-msvc - rust: nightly-x86_64-pc-windows-msvc
os: windows os: windows
env: RUSTFLAGS="-D warnings"
before_script: before_script:
- rustup component add rustfmt - rustup component add rustfmt
- if [[ -n "$BUILD_BOOK" ]]; then (test -x $HOME/.cargo/bin/mdbook || ./ci/install-mdbook.sh); fi - if [[ -n "$BUILD_BOOK" ]]; then (test -x $HOME/.cargo/bin/mdbook || ./ci/install-mdbook.sh); fi
script: script:
- if ![[ -n "$BUILD_BOOK" ]]; then cargo check --all --benches --bins --examples --tests && cargo test --all; fi - if ! [[ -n "$BUILD_BOOK" ]]; then cargo check --all --benches --bins --examples --tests && cargo test --all; fi
- if [[ -n "$BUILD_BOOK" ]]; then cargo test --all --benches --bins --examples --tests; fi - if [[ -n "$BUILD_BOOK" ]]; then cargo test --all --benches --bins --examples --tests; fi
- cargo fmt --all -- --check - cargo fmt --all -- --check
- if [[ -n "$BUILD_DOCS" ]]; then cargo doc --features docs; fi - if [[ -n "$BUILD_DOCS" ]]; then cargo doc --features docs; fi
- if [[ -n "$BUILD_BOOK" ]]; then mdbook build docs && mdbook test -L ./target/debug/deps docs; fi - if [[ -n "$BUILD_BOOK" ]]; then mdbook build docs && mdbook test -L ./target/debug/deps docs; fi