|
1 | 1 | language: rust
|
2 | 2 |
|
3 | | -env: |
4 | | - - RUSTFLAGS="-D warnings" |
5 | | - |
6 | 3 | matrix:
|
7 | 4 | fast_finish: true
|
8 | 5 | include:
|
9 | 6 | - rust: nightly
|
10 | 7 | os: linux
|
11 | | - env: BUILD_DOCS=1 BUILD_BOOK=1 |
| 8 | + env: RUSTFLAGS="-D warnings" BUILD_DOCS=1 BUILD_BOOK=1 |
12 | 9 | - rust: nightly
|
13 | 10 | os: osx
|
14 | 11 | osx_image: xcode9.2
|
15 | | - env: BUILD_DOCS=1 |
| 12 | + env: RUSTFLAGS="-D warnings" BUILD_DOCS=1 |
16 | 13 | - rust: nightly-x86_64-pc-windows-msvc
|
17 | 14 | os: windows
|
| 15 | + env: RUSTFLAGS="-D warnings" |
18 | 16 |
|
19 | 17 | before_script:
|
20 | 18 | - rustup component add rustfmt
|
21 | | - - (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update) |
22 | | - - (test -x $HOME/.cargo/bin/mdbook || cargo install --vers "^0.3" mdbook) |
23 | | - - cargo install-update -a |
| 19 | + - if [[ -n "$BUILD_BOOK" ]]; then (test -x $HOME/.cargo/bin/mdbook || ./ci/install-mdbook.sh); fi |
24 | 20 |
|
25 | 21 | script:
|
26 | | - - if ![[ -n "$BUILD_BOOK" ]]; then cargo check --all --benches --bins --examples --tests && cargo test --all; fi |
27 | | - - if [[ -n "$BUILD_BOOK" ]]; then cargo test --all --benches --bins --examples --tests; fi |
| 22 | + - if ![[ -n "$BUILD_BOOK" ]]; then cargo check --all --benches --bins --examples --tests && cargo test --all; fi |
| 23 | + - if [[ -n "$BUILD_BOOK" ]]; then cargo test --all --benches --bins --examples --tests; fi |
28 | 24 | - cargo fmt --all -- --check
|
29 | | - - if [[ -n "$BUILD_DOCS" ]]; then cargo doc --features docs; fi |
30 | | - - if [[ -n "$BUILD_BOOK" ]]; then mdbook build docs && mdbook test -L ./target/debug/deps docs; fi |
| 25 | + - if [[ -n "$BUILD_DOCS" ]]; then cargo doc --features docs; fi |
| 26 | + - if [[ -n "$BUILD_BOOK" ]]; then mdbook build docs && mdbook test -L ./target/debug/deps docs; fi |
0 commit comments