forked from iliekturtles/uom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
66 lines (60 loc) · 1.76 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
language: rust
cache:
directories:
- /home/travis/.cargo
sudo: false
rust:
- 1.28.0 # Oldest supported
- stable
- beta
- nightly
os:
- linux
- osx
- windows
matrix:
allow_failures:
- rust: nightly
include:
- name: "Rust: stable + tests"
rust: stable
script: |
set -e
cargo test --all --verbose --features "use_serde"
cargo test --manifest-path tests/edition_check/Cargo.toml --verbose --features "use_serde"
cargo test --verbose --no-default-features --features "f32 si"
cargo test --verbose --no-default-features --features "autoconvert f32 si use_serde"
cargo test --verbose --no-run --no-default-features --features "autoconvert usize isize bigint bigrational si std use_serde"
cargo test --verbose --no-run --no-default-features --features "autoconvert usize u8 u16 u32 u64 isize i8 i16 i32 i64 bigint biguint rational rational32 rational64 bigrational f32 f64 std use_serde"
- name: Rustfmt
rust: 1.35.0
install:
- rustup component add rustfmt
script:
- cargo fmt -- --check
- name: Clippy
rust: 1.35.0
install:
- rustup component add clippy
script:
- RUSTFLAGS="-D warnings" cargo clippy --all --tests
- name: Tarpaulin
rust: 1.35.0
sudo: required
script:
- docker run --security-opt seccomp=unconfined -v "$PWD:/volume" xd009642/tarpaulin sh -c "cargo build && cargo tarpaulin --ciserver travis-ci --coveralls $TRAVIS_JOB_ID"
exclude:
- os: linux # Done by explicit job.
rust: stable
install:
- rustc -Vv
- cargo -V
script: |
set -e
cargo test --verbose --features "use_serde"
cargo test --manifest-path tests/feature_check/Cargo.toml --verbose
before_cache:
- rm -rf /home/travis/.cargo/registry
notifications:
email:
on_success: never