-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (46 loc) · 1.14 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
language: rust
cache: cargo
os:
- linux
rust:
- stable
- beta
- nightly
sudo: required
matrix:
allow_failure:
- rust: nightly
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
- cmake
- libssl-dev
- pkg-config
- zlib1g-dev
sources:
- kalakris-cmake
before_script:
- export PATH=$HOME/.cargo/bin:$PATH
- cargo install cargo-update || echo "cargo-update already installed"
- cargo install cargo-travis || echo "cargo-travis already installed"
- RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin || true
- cargo install-update -a # update outdated cached binaries
script:
- |
cargo build --all --verbose &&
cargo test --all --verbose &&
cargo bench --all --verbose &&
cargo doc --all --verbose
after_success:
- |
cargo +nightly tarpaulin --verbose --out Xml &&
bash <(curl -s https://codecov.io/bash) &&
cargo coveralls --verbose
env:
global:
# override the default `--features unstable` used for the nightly branch (optional)
- TRAVIS_CARGO_NIGHTLY_FEATURE=nightly