File tree 1 file changed +28
-11
lines changed
1 file changed +28
-11
lines changed Original file line number Diff line number Diff line change 1
1
language : rust
2
2
3
+ env : RUSTFLAGS="-D warnings"
4
+
3
5
matrix :
4
6
fast_finish : true
5
7
include :
6
8
- rust : nightly
7
9
os : linux
8
- env : RUSTFLAGS="-D warnings" BUILD_DOCS=1 BUILD_BOOK=1
10
+
9
11
- rust : nightly
10
12
os : osx
11
13
osx_image : xcode9.2
12
- env : RUSTFLAGS="-D warnings" BUILD_DOCS=1
14
+
13
15
- rust : nightly-x86_64-pc-windows-msvc
14
16
os : windows
15
- env : RUSTFLAGS="-D warnings"
16
17
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
+ script :
38
+ - mdbook build docs
39
+ - mdbook test -L ./target/debug/deps docs
20
40
21
41
script :
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
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
42
+ - cargo check --all --benches --bins --examples --tests
43
+ - cargo test --all
You can’t perform that action at this time.
0 commit comments