-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
50 lines (40 loc) · 879 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
language: rust
sudo: false
cache: cargo
os:
- linux
- osx
rust:
- nightly
- beta
- stable
addons:
apt:
sources:
# Kcov dependencies
- kalakris-cmake
packages:
# Kcov dependencies
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
- cmake
matrix:
fast_finish: true
env:
- CARGO_FLAGS=""
before_script:
- export PATH="$PATH:$HOME/.cargo/bin"
- which cargo-coverage || cargo install cargo-travis
- which rustfmt || cargo install rustfmt
script:
- cargo build --verbose $CARGO_FLAGS
- cargo test --verbose $CARGO_FLAGS
- cargo bench --verbose $CARGO_FLAGS
- cargo doc --verbose $CARGO_FLAGS
after_success:
- cargo fmt -- --write-mode=diff
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then
cargo coveralls $CARGO_FLAGS;
fi