You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
async-std/.travis.yml

27 lines
990 B
YAML

5 years ago
language: rust
matrix:
fast_finish: true
include:
- rust: nightly
os: linux
env: RUSTFLAGS="-D warnings" BUILD_DOCS=1 BUILD_BOOK=1
5 years ago
- 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"
5 years ago
before_script:
- rustup component add rustfmt
- if [[ -n "$BUILD_BOOK" ]]; then (test -x $HOME/.cargo/bin/mdbook || ./ci/install-mdbook.sh); fi
5 years ago
script:
- if ! [[ -n "$BUILD_BOOK" ]]; then cargo check --features unstable --all --benches --bins --examples --tests && cargo test --features unstable --all; fi
- if [[ -n "$BUILD_BOOK" ]]; then cargo test --features unstable --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