forked from quinn-rs/quinn
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
49 lines (45 loc) · 1016 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
41
42
43
44
45
46
47
48
49
language: rust
sudo: required
dist: trusty
addons:
apt:
update: true
packages:
- libssl-dev
cache: cargo
rust:
- stable
os:
- linux
- osx
matrix:
allow_failures:
- rust: nightly
include:
- os: linux
rust: beta
- os: linux
rust: nightly
before_cache:
if [[ "$TRAVIS_RUST_VERSION" == nightly ]]; then
RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install -f cargo-tarpaulin;
fi
before_script:
- if [[ "$TRAVIS_RUST_VERSION" == stable ]]; then
rustup component add rustfmt;
fi
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6';
fi
script:
- cargo clean
- cargo build --all-features
- RUST_BACKTRACE=1 cargo test --all-features
- if [[ "$TRAVIS_RUST_VERSION" == stable ]]; then
cargo fmt -- --check;
fi
after_success: |
if [[ "$TRAVIS_RUST_VERSION" == nightly ]]; then
cargo tarpaulin --out Xml
bash <(curl -s https://codecov.io/bash)
fi