-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
33 lines (32 loc) · 1015 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
language: rust
rust:
- nightly
cache: cargo
os:
- linux
before_script:
- rustup toolchain install nightly-2019-09-25-x86_64-unknown-linux-gnu
- rustup default nightly-2019-09-25-x86_64-unknown-linux-gnu
- cargo install cargo-kcov --force
- rustup component add clippy-preview
script:
- cargo clippy --all-targets --all-features -- -W clippy::all -W clippy::pedantic -W clippy::restriction -W clippy::nursery -D warnings
- cargo build --verbose --all
- cargo test --verbose --all
- cargo doc --no-deps
after_success:
- if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]] && [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cargo kcov --print-install-kcov-sh | sh; fi
- if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]] && [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cargo kcov --coveralls; fi
addons:
apt:
sources:
- kalakris-cmake
packages:
- cmake
- libcurl4-openssl-dev
- libiberty-dev
- libelf-dev
- libdw-dev
- binutils-dev
- libpcap-dev
- bison