-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (47 loc) · 1008 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
50
51
52
53
sudo: required
language: rust
dist: xenial
#cache: cargo
addons:
apt:
packages:
- cmake
- g++
- pkg-config
- jq
- libssl-dev
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
- libiberty-dev
rust:
- nightly
- beta
- stable
before_cache: |
if [[ "$TRAVIS_RUST_VERSION" == nightly ]]; then
cargo install cargo-travis
cargo install cargo-kcov
fi
if [[ "$TRAVIS_RUST_VERSION" == stable ]]; then
rustup component add clippy
fi
script:
- |
cargo update &&
cargo build &&
cargo test &&
cargo doc
after_success: |
if [[ "$TRAVIS_RUST_VERSION" == stable ]]; then
cargo clippy -- -D warnings
fi
if [[ "$TRAVIS_RUST_VERSION" == nightly ]]; then
cargo doc-upload --token ${GITHUB_TOKEN}
cargo kcov --print-install-kcov-sh | sh
cargo clean
cargo kcov --coveralls -v -- \
--verify \
--exclude-pattern=.cargo,/usr/include,tests.rs,main.rs
fi