mirror of
https://gitee.com/openharmony/third_party_rust_memoffset
synced 2024-11-23 07:10:22 +00:00
Travis shares caches between jobs unless their env vars differ
This commit is contained in:
parent
782c7d4408
commit
72d7c04348
10
.travis.yml
10
.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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user