Skip to content

Commit 192c968

Browse files
author
James Munns
committed
Correct boolean inversion and overrided env vars
1 parent b39c720 commit 192c968

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

.travis.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
11
language: rust
22

3-
env:
4-
- RUSTFLAGS="-D warnings"
5-
63
matrix:
74
fast_finish: true
85
include:
96
- rust: nightly
107
os: linux
11-
env: BUILD_DOCS=1 BUILD_BOOK=1
8+
env: RUSTFLAGS="-D warnings" BUILD_DOCS=1 BUILD_BOOK=1
129
- rust: nightly
1310
os: osx
1411
osx_image: xcode9.2
15-
env: BUILD_DOCS=1
12+
env: RUSTFLAGS="-D warnings" BUILD_DOCS=1
1613
- rust: nightly-x86_64-pc-windows-msvc
1714
os: windows
15+
env: RUSTFLAGS="-D warnings"
1816

1917
before_script:
2018
- rustup component add rustfmt
21-
- if [[ -n "$BUILD_BOOK" ]]; then (test -x $HOME/.cargo/bin/mdbook || ./ci/install-mdbook.sh); fi
19+
- if [[ -n "$BUILD_BOOK" ]]; then (test -x $HOME/.cargo/bin/mdbook || ./ci/install-mdbook.sh); fi
2220

2321
script:
24-
- if ![[ -n "$BUILD_BOOK" ]]; then cargo check --all --benches --bins --examples --tests && cargo test --all; fi
25-
- 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
2624
- cargo fmt --all -- --check
27-
- if [[ -n "$BUILD_DOCS" ]]; then cargo doc --features docs; fi
28-
- 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

Comments
 (0)