2019-08-08 12:44:48 +00:00
|
|
|
language: rust
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
include:
|
|
|
|
- rust: nightly
|
|
|
|
os: linux
|
2019-08-27 14:45:32 +00:00
|
|
|
env: RUSTFLAGS="-D warnings" BUILD_DOCS=1 BUILD_BOOK=1
|
2019-08-08 12:44:48 +00:00
|
|
|
- rust: nightly
|
|
|
|
os: osx
|
2019-08-18 17:14:27 +00:00
|
|
|
osx_image: xcode9.2
|
2019-08-27 14:45:32 +00:00
|
|
|
env: RUSTFLAGS="-D warnings" BUILD_DOCS=1
|
2019-08-16 19:46:23 +00:00
|
|
|
- rust: nightly-x86_64-pc-windows-msvc
|
|
|
|
os: windows
|
2019-08-27 14:45:32 +00:00
|
|
|
env: RUSTFLAGS="-D warnings"
|
2019-08-08 12:44:48 +00:00
|
|
|
|
2019-08-18 23:35:54 +00:00
|
|
|
before_script:
|
|
|
|
- rustup component add rustfmt
|
2019-08-27 14:45:32 +00:00
|
|
|
- if [[ -n "$BUILD_BOOK" ]]; then (test -x $HOME/.cargo/bin/mdbook || ./ci/install-mdbook.sh); fi
|
2019-08-18 23:35:54 +00:00
|
|
|
|
2019-08-08 12:44:48 +00:00
|
|
|
script:
|
2019-08-27 14:45:32 +00:00
|
|
|
- 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
|
2019-08-16 19:46:23 +00:00
|
|
|
- cargo fmt --all -- --check
|
2019-08-27 14:45:32 +00:00
|
|
|
- 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
|