forked from twitter/rpc-perf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (40 loc) · 972 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
32
33
34
35
36
37
38
39
40
language: rust
rust:
- stable
- beta
- nightly
os: linux
dist: trusty
sudo: required
env: TYPE=default RUST_BACKTRACE=1
script:
- cargo build --verbose
- cargo test --verbose
- cargo build --release --verbose
- cargo test --release --verbose
matrix:
include:
- os: linux
rust: nightly
env: TYPE=rustfmt RUST_BACKTRACE=1
script:
- cargo install -f rustfmt-nightly
- cargo fmt -- --check
- os: linux
rust: nightly
env: TYPE=tls RUST_BACKTRACE=1
script:
- cargo build --features tls --release
- os: linux
rust: nightly
env: TYPE=clippy RUST_BACKTRACE=1
script:
- rustup component add clippy --toolchain=nightly || cargo install --git https://github.com/rust-lang/rust-clippy/ --force clippy
- cargo clippy
- os: linux
rust: nightly
env: TYPE=benchmark RUST_BACKTRACE=1
script:
- bash bench.sh
allow_failures:
- rust: nightly