Travis shares caches between jobs unless their env vars differ

This commit is contained in:
Ralf Jung 2020-06-22 10:50:31 +02:00
parent 782c7d4408
commit 72d7c04348
2 changed files with 8 additions and 5 deletions

View File

@ -5,8 +5,8 @@ cache:
matrix:
include:
- name: miri
env: TRAVIS_MIRI_JOB # make sure the cache is not shared with other "nightly" jobs
rust: nightly
os: linux
script:
- sh ci/miri.sh
@ -19,10 +19,10 @@ matrix:
- name: all-features
rust: nightly
os: linux
script: # `--lib` added to prevent doctests from being compiled.
# This is due to `unstable_const` requiring extra `feature(...)` directives
# which the doctests do not have.
script:
# `--lib` added to prevent doctests from being compiled.
# This is due to `unstable_const` requiring extra `feature(...)` directives
# which the doctests do not have.
- cargo test --verbose --all-features --lib
- name: rustfmt

View File

@ -9,3 +9,6 @@ cargo miri setup
cargo miri test
cargo miri test --all-features
# Restore old state in case Travis uses this cache for other jobs.
rustup default nightly