• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1sudo: false
2language: rust
3cache:
4  cargo: true
5matrix:
6  include:
7  - name: miri
8    env: TRAVIS_MIRI_JOB # make sure the cache is not shared with other "nightly" jobs
9    rust: nightly
10    script:
11      - sh ci/miri.sh
12
13  - rust: 1.19.0  # Oldest supported (first version with numeric fields in struct patterns)
14  - rust: 1.20.0  # Oldest supported with tuple_ty
15  - rust: 1.31.0  # Oldest supported with allow(clippy)
16  - rust: 1.36.0  # Oldest supported with MaybeUninit
17  - rust: 1.40.0  # Oldest supported with cfg(doctest)
18  - rust: 1.51.0  # Oldest supported with ptr::addr_of!
19  - rust: stable
20  - rust: beta
21  - rust: nightly
22
23  - name: all-features
24    rust: nightly
25    script:
26      # `--lib` added to prevent doctests from being compiled.
27      # This is due to `unstable_const` requiring extra `feature(...)` directives
28      # which the doctests do not have.
29      - cargo test --verbose --all-features --lib
30
31  - name: rustfmt
32    rust: 1.36.0
33    install:
34    - rustup component add rustfmt
35    script:
36    - cargo fmt -- --check
37
38  - name: deny-warnings
39    env: RUSTFLAGS="-D warnings"
40    rust: 1.33.0  # `stable`: Locking down for consistent behavior
41    script:
42    - cargo check --tests
43
44install:
45- rustc -Vv
46- cargo -V
47
48script:
49- rm -rf target/debug/deps/*memoffset*  # Avoid rustdoc problems
50- cargo test --verbose
51