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
language: rust
cache: cargo
dist: trusty
sudo: true
rust:
- stable
- beta
- nightly
matrix:
allow_failures:
- rust: nightly
env:
global:
- RUSTFLAGS="-C link-dead-code"
# addons:
# apt:
# packages:
# - libcurl4-openssl-dev
# - libelf-dev
# - libdw-dev
# - binutils-dev
# - libiberty-dev
# before_script:
# - |
# cargo install cargo-kcov
# if [ ! -x $HOME/.cargo/bin/kcov ] || [ ! -f $HOME/.cargo/bin/kcov ]; then
# mkdir kcov
# cd kcov
# cargo kcov --print-install-kcov-sh | sh
# cd ${TRAVIS_BUILD_DIR}
# rm -rf kcov
# fi
script:
- |
cargo check &&
cargo test &&
# cargo test --benches && # Not available on stable, makes travis CI unhappy.
cargo test --release
# cargo kcov --verbose --coveralls &&
# bash <(curl -s https://codecov.io/bash)