forked from aswaving/yenc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (37 loc) · 856 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
language: rust
sudo: required
# Dependencies of kcov
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
- cmake
- libiberty-dev
matrix:
include:
- rust: stable
- rust: 1.17.0
- rust: nightly
allow_failures:
- rust: nightly
script:
- |
cargo test --verbose
after_success:
- |
if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then
wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz &&
tar xzf master.tar.gz &&
cd kcov-master &&
mkdir build &&
cd build &&
cmake .. &&
make &&
cd ../.. &&
for file in target/debug/yenc-*[^\.d]; do
./kcov-master/build/src/kcov --exclude-pattern=/.cargo,/usr/lib --verify --coveralls-id="$TRAVIS_JOB_ID" target/kcov "$file"
done
fi