2019-03-13 20:33:10 +00:00
|
|
|
sudo: false
|
|
|
|
language: rust
|
2019-08-16 09:55:03 +00:00
|
|
|
cache:
|
|
|
|
cargo: true
|
2019-03-13 20:33:10 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
2020-06-20 13:09:16 +00:00
|
|
|
- name: miri
|
2020-06-22 08:50:31 +00:00
|
|
|
env: TRAVIS_MIRI_JOB # make sure the cache is not shared with other "nightly" jobs
|
2020-06-20 13:09:16 +00:00
|
|
|
rust: nightly
|
|
|
|
script:
|
|
|
|
- sh ci/miri.sh
|
|
|
|
|
2019-11-16 09:12:43 +00:00
|
|
|
- rust: 1.19.0 # Oldest supported (first version with numeric fields in struct patterns)
|
2019-11-17 19:47:03 +00:00
|
|
|
- rust: 1.31.0 # Oldest supported with allow(clippy)
|
2019-08-16 09:55:03 +00:00
|
|
|
- rust: 1.36.0 # Oldest supported with MaybeUninit
|
|
|
|
- rust: stable
|
|
|
|
- rust: beta
|
|
|
|
- rust: nightly
|
|
|
|
|
2020-06-20 13:09:16 +00:00
|
|
|
- name: all-features
|
2019-11-04 10:53:24 +00:00
|
|
|
rust: nightly
|
2020-06-22 08:50:31 +00:00
|
|
|
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.
|
2020-06-20 12:14:55 +00:00
|
|
|
- cargo test --verbose --all-features --lib
|
2019-11-04 10:53:24 +00:00
|
|
|
|
2020-06-20 13:09:16 +00:00
|
|
|
- name: rustfmt
|
2019-07-04 16:05:36 +00:00
|
|
|
rust: 1.36.0
|
2019-03-13 20:33:10 +00:00
|
|
|
install:
|
2019-08-10 09:16:15 +00:00
|
|
|
- rustup component add rustfmt
|
2019-03-13 20:33:10 +00:00
|
|
|
script:
|
|
|
|
- cargo fmt -- --check
|
2019-08-16 09:55:03 +00:00
|
|
|
|
2020-06-20 13:09:16 +00:00
|
|
|
- name: deny-warnings
|
|
|
|
env: RUSTFLAGS="-D warnings"
|
2019-03-13 20:33:10 +00:00
|
|
|
rust: 1.33.0 # `stable`: Locking down for consistent behavior
|
|
|
|
script:
|
|
|
|
- cargo check --tests
|
2019-08-16 09:55:03 +00:00
|
|
|
|
2019-03-13 20:33:10 +00:00
|
|
|
install:
|
|
|
|
- rustc -Vv
|
|
|
|
- cargo -V
|
|
|
|
|
|
|
|
script:
|
|
|
|
- rm -rf target/debug/deps/*memoffset* # Avoid rustdoc problems
|
|
|
|
- cargo test --verbose
|