-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
56 lines (50 loc) · 1.15 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
55
56
language: rust
cache: cargo
rust:
- stable
- beta
- nightly
before_script:
- rustup component add rustfmt
- rustup component add clippy
script:
- cargo fmt --all -- --check
- cargo clippy -- -A clippy::redundant_field_names
- cargo clean
- cargo test
matrix:
allow_failures:
- rust: nightly
- rust: beta
before_install:
- sudo apt-get update
install:
- PATH=$PATH:/home/travis/.cargo/bin
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- cmake
- gcc
- binutils-dev
- libiberty-dev
after_success: |
wget https://github.com/SimonKagstrom/kcov/archive/v34.tar.gz &&
tar xzf v34.tar.gz &&
cd kcov-34 &&
mkdir build &&
cd build &&
cmake .. &&
make &&
sudo make install &&
cd ../.. &&
rm -rf kcov-34 &&
find target/debug -maxdepth 1 -name 'cernan-*' -type f | while read file; do
[ -x $file ] || continue;
mkdir -p "target/cov/$(basename $file)";
kcov --exclude-pattern=/.cargo,/usr/lib --include-path="$(pwd)" --verify "target/cov/$(basename $file)" "$file";
done &&
bash <(curl -s https://codecov.io/bash) &&
echo "Uploaded code coverage"