Skip to content

Commit f4b553b

Browse files
Improve Travis-CI config
Several improvements: - Split "without nightly feature" and "with nightly feature" into two jobs - Add a job that builds on beta - Fix `RUST_FLAGS` => `RUSTFLAGS` typo - Remove cargo cache. Caching is not always good. Download the cache takes time and since we compile with different feature sets, the `target` folder cannot really be reused anyway. We should keep an eye on this, though. - Early exit in scripts (fail when first command fails)
1 parent ce3ff8d commit f4b553b

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

.travis.yml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
language: rust
2-
rust:
3-
- nightly
42

5-
script:
6-
- cargo build --verbose
7-
- cargo test --verbose
8-
- cargo build --verbose --features=nightly
9-
- cargo test --verbose --features=nightly
3+
matrix:
4+
include:
5+
- name: "Build & test on nightly WITH nightly feature"
6+
rust: nightly
7+
script:
8+
- cargo build --verbose --features=nightly || travis_terminate 1
9+
- cargo test --verbose --features=nightly || travis_terminate 1
10+
- name: "Build & test on nightly WITHOUT nightly feature"
11+
rust: nightly
12+
script:
13+
- cargo build --verbose || travis_terminate 1
14+
- cargo test --verbose || travis_terminate 1
15+
- name: "Build on beta"
16+
rust: beta
17+
script: cargo build --verbose
1018

1119
env:
12-
- RUST_FLAGS="--deny warnings"
13-
14-
cache: cargo
20+
global:
21+
- RUSTFLAGS="--deny warnings"

0 commit comments

Comments
 (0)