Skip to content

Commit ef67133

Browse files
author
Thomas Bahn
committed
Update TravisCI configuration
1 parent 079641c commit ef67133

File tree

1 file changed

+18
-34
lines changed

1 file changed

+18
-34
lines changed

.travis.yml

Lines changed: 18 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,24 @@
1-
sudo: false
21
language: rust
3-
2+
cache: cargo
43
rust:
5-
- nightly
6-
- beta
7-
- stable
84
- 1.33.0
5+
- stable
6+
- beta
7+
- nightly
98

10-
before_script:
11-
- |
12-
pip install 'travis-cargo<0.2' --user || exit 1;
13-
if [ "$TRAVIS_RUST_VERSION" == "stable" ]; then
14-
rustup component add clippy || exit 1
15-
fi
16-
export PATH=$HOME/.local/bin:$PATH
9+
jobs:
10+
include:
11+
- if: env(TRAVIS_RUST_VERSION) = "nightly"
12+
name: "Test minimal dependency versions with Rust nightly"
13+
script: cargo test -Zminimal-versions --verbose --all-features
14+
- if: env(TRAVIS_RUST_VERSION) = "stable"
15+
name: "Lint with Clippy"
16+
install: rustup component add clippy
17+
script:
18+
- cargo clippy --verbose --all-targets --no-default-features
19+
- cargo clippy --verbose --all-targets --all-features
1720

21+
install: skip
1822
script:
19-
- |
20-
travis-cargo test -- --no-default-features &&
21-
travis-cargo test &&
22-
travis-cargo test -- --all-features &&
23-
travis-cargo --only stable clippy -- --all-features &&
24-
rm Cargo.lock &&
25-
travis-cargo --only nightly build -- -Z minimal-versions --all-features
26-
27-
after_success:
28-
- |
29-
if [ "$TRAVIS_RUST_VERSION" == "stable" ]; then
30-
travis-cargo doc -- --no-default-features &&
31-
mv target/doc target/doc_core &&
32-
travis-cargo doc &&
33-
mv target/doc_core target/doc/core &&
34-
travis-cargo doc-upload
35-
fi
36-
37-
env:
38-
global:
39-
- TRAVIS_CARGO_NIGHTLY_FEATURE="" # no unstable feature
40-
- secure: ddcWXicVcCooC+Dy8guGruZY2bAU3oyGjrxdC3YNfBYdatEKzW1toAiQyN8SRyZyfoHsbb7lh4YeBfv1rpmTPM6nvHMz9CHMlvED8Y+/QuYoKN2qrNiQ7eQ9xSVhOVlha/GMPSZXxmEIuJVj0Dn1D/S4RWyNMKCJdj2YvybPzOU=
23+
- cargo test --verbose --all-features
24+
- cargo test --verbose --no-default-features

0 commit comments

Comments
 (0)