-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
31 lines (31 loc) · 860 Bytes
/
.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
language: rust
rust:
- stable
- beta
- nightly
os: linux
env: TYPE=default RUST_BACKTRACE=1
matrix:
include:
- os: linux
rust: nightly
env: TYPE=features RUST_BACKTRACE=1
script:
- cargo test --features rdtsc
- cargo build --features rdtsc
- cargo test --release --features rdtsc
- cargo build --release --features rdtsc
- os: linux
rust: stable
env: TYPE=rustfmt RUST_BACKTRACE=1
script:
- cargo install rustfmt || cargo fmt -- --version || cargo install -f rustfmt
- cargo fmt -- --write-mode=diff --force
- os: linux
rust: nightly
env: TYPE=clippy RUST_BACKTRACE=1
script:
- cargo install clippy || cargo clippy -- --version || cargo install -f clippy
- cargo clippy
allow_failures:
- env: TYPE=clippy RUST_BACKTRACE=1