File tree Expand file tree Collapse file tree 1 file changed +29
-11
lines changed
Expand file tree Collapse file tree 1 file changed +29
-11
lines changed Original file line number Diff line number Diff line change 11language : rust
22
3+ env : RUSTFLAGS="-D warnings"
4+
35matrix :
46 fast_finish : true
57 include :
68 - rust : nightly
79 os : linux
8- env : RUSTFLAGS="-D warnings" BUILD_DOCS=1 BUILD_BOOK=1
10+
911 - rust : nightly
1012 os : osx
1113 osx_image : xcode9.2
12- env : RUSTFLAGS="-D warnings" BUILD_DOCS=1
14+
1315 - rust : nightly-x86_64-pc-windows-msvc
1416 os : windows
15- env : RUSTFLAGS="-D warnings"
1617
17- before_script :
18- - rustup component add rustfmt
19- - if [[ -n "$BUILD_BOOK" ]]; then (test -x $HOME/.cargo/bin/mdbook || ./ci/install-mdbook.sh); fi
18+ - name : fmt
19+ rust : nightly
20+ os : linux
21+ before_script :
22+ - rustup component add rustfmt
23+ script :
24+ - cargo fmt --all -- --check
25+
26+ - name : docs
27+ rust : nightly
28+ os : linux
29+ script :
30+ - cargo doc --features docs
31+
32+ - name : book
33+ rust : nightly
34+ os : linux
35+ before_script :
36+ - test -x $HOME/.cargo/bin/mdbook || ./ci/install-mdbook.sh
37+ - cargo build # to find 'extern crate async_std' by `mdbook test`
38+ script :
39+ - mdbook build docs
40+ - mdbook test -L ./target/debug/deps docs
2041
2142script :
22- - if ! [[ -n "$BUILD_BOOK" ]]; then cargo check --features unstable --all --benches --bins --examples --tests && cargo test --features unstable --all; fi
23- - if [[ -n "$BUILD_BOOK" ]]; then cargo test --features unstable --all --benches --bins --examples --tests; fi
24- - cargo fmt --all -- --check
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
43+ - cargo check --features unstable --all --benches --bins --examples --tests
44+ - cargo test --features unstable --all
You can’t perform that action at this time.
0 commit comments