2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-01-16 18:59:55 +00:00
async-std/.travis.yml
2019-08-27 16:45:32 +02:00

26 lines
930 B
YAML

language: rust
matrix:
fast_finish: true
include:
- rust: nightly
os: linux
env: RUSTFLAGS="-D warnings" BUILD_DOCS=1 BUILD_BOOK=1
- rust: nightly
os: osx
osx_image: xcode9.2
env: RUSTFLAGS="-D warnings" BUILD_DOCS=1
- rust: nightly-x86_64-pc-windows-msvc
os: windows
env: RUSTFLAGS="-D warnings"
before_script:
- rustup component add rustfmt
- if [[ -n "$BUILD_BOOK" ]]; then (test -x $HOME/.cargo/bin/mdbook || ./ci/install-mdbook.sh); fi
script:
- 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
- cargo fmt --all -- --check
- 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