Skip to content

Commit 104bf4d

Browse files
committed
test
1 parent d89b384 commit 104bf4d

File tree

1 file changed

+28
-11
lines changed

1 file changed

+28
-11
lines changed

.travis.yml

+28-11
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,43 @@
11
language: rust
22

3+
env: RUSTFLAGS="-D warnings"
4+
35
matrix:
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+
script:
38+
- mdbook build docs
39+
- mdbook test -L ./target/debug/deps docs
2040

2141
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

0 commit comments

Comments
 (0)