-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
54 lines (51 loc) · 1.3 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
# a configuration for a rust project
language: rust
# only rebuild dependencies if they or the compiler were upgraded
cache: cargo
# test on all three channels
rust:
- stable
- beta
- nightly
# the basic things to test
before_script:
- rustup component add clippy
script:
- cargo build --verbose
- cargo test --verbose
- cargo doc --verbose
- cargo clippy --verbose
matrix:
fast_failures: true
allow_failures:
- rust: nightly
- env: KCOV=1
include:
# test formatting
- rust: stable
env: FMT=1
before_script:
- rustup component add rustfmt
script:
- cargo fmt --all -- --check
# test coverage
- rust: stable
env: KCOV=1
sudo: required # travis-ci/travis-ci#9061
before_script:
- cargo install cargo-update || echo "cargo-update already installed"
- cargo install cargo-travis || echo "cargo-travis already installed"
- cargo install-update -a
script:
- |
cargo build --verbose &&
cargo coverage --verbose &&
bash <(curl -s https://codecov.io/bash) -s target/kcov
addons: # required for kcov
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
- cmake