-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
46 lines (42 loc) · 1.05 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
language: rust
sudo: false
rust:
# Explicitly test against minimum Rust version to avoid accidentally breaking
# compatibility.
- 1.25.0
- stable
- beta
- nightly
env:
- FEATURE_ARGS=""
- FEATURE_ARGS="--lib --no-default-features"
- FEATURE_ARGS="--features alloc --lib --no-default-features"
matrix:
include:
# `rustfmt` verification.
- rust: stable
before_script:
- rustup component add rustfmt
script:
- cargo fmt -- --check
# `clippy` lint tests.
- rust: stable
before_script:
- rustup component add clippy
script:
- cargo clippy -- -Dwarnings
- rust: nightly
env: FEATURE_ARGS="--features unstable"
- rust: nightly
env: FEATURE_ARGS="--features unstable --lib --no-default-features"
- rust: nightly
env: FEATURE_ARGS="--features alloc,unstable --lib --no-default-features"
exclude:
- rust: 1.25.0
env: FEATURE_ARGS="--features alloc --lib --no-default-features"
script:
- cargo test $FEATURE_ARGS --verbose
- cargo test $FEATURE_ARGS --verbose --release
notifications:
email:
on_success: never