-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
47 lines (40 loc) · 1.04 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
sudo: false
os:
- linux
language: rust
# necessary for `travis-cargo coveralls --no-sudo`
addons:
apt:
packages:
- libelf-dev
- libdw-dev
- binutils-dev # optional: only required for the --verify flag of coveralls
cache: cargo
before_cache:
# Travis can't cache files that are not readable by "others"
- chmod -R a+r $HOME/.cargo
rust:
- nightly
# load travis-cargo
before_script:
- |
pip install 'travis-cargo<0.2' --user &&
export PATH=$HOME/.local/bin:$PATH
# the main build
script:
- |
travis-cargo build &&
travis-cargo test
after_success:
# measure code coverage and upload to coveralls.io (the verify
# argument mitigates kcov crashes due to malformed debuginfo, at the
# cost of some speed <https://github.com/huonw/travis-cargo/issues/12>)
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
travis-cargo coveralls --no-sudo --verify
KCOV=./kcov/build/src/kcov ./scripts/coverage.sh
fi
env:
global:
- TRAVIS_CARGO_NIGHTLY_FEATURE=""
- RUST_BACKTRACE=1