diff --git a/.travis.yml b/.travis.yml index 646f317..1bf5ede 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/ci/miri.sh b/ci/miri.sh index 03ebd73..10322f9 100644 --- a/ci/miri.sh +++ b/ci/miri.sh @@ -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