File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,24 @@ cache: cargo
8
8
9
9
before_install :
10
10
- sudo apt-get -qq update
11
- - sudo apt-get install -y binutils-dev libunwind8-dev
11
+ - sudo apt-get install -y binutils-dev libunwind8-dev libcurl4-openssl-dev libelf-dev libdw-dev cmake gcc binutils-dev libiberty-dev
12
12
13
13
script :
14
- - cargo build --verbose
15
- - cargo test --verbose
14
+ - RUSTFLAGS="-C link-dead-code" cargo build --verbose
15
+ - RUSTFLAGS="-C link-dead-code" cargo test --verbose
16
16
- if [ "$(rustup show | grep default | grep 1.34.2)" != "" ]; then cd fuzz && cargo test --verbose && ./travis-fuzz.sh; fi
17
17
- if [ "$(rustup show | grep default | grep stable)" != "" ]; then cd net-tokio && cargo build --verbose; fi
18
+ - if [ "$(rustup show | grep default | grep stable)" != "" ]; then
19
+ wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz &&
20
+ tar xzf master.tar.gz &&
21
+ cd kcov-master &&
22
+ mkdir build &&
23
+ cd build &&
24
+ cmake .. &&
25
+ make &&
26
+ make install DESTDIR=../../kcov-build &&
27
+ cd ../.. &&
28
+ rm -rf kcov-master &&
29
+ for file in target/debug/*; do [ -x "${file}" ] || continue; mkdir -p "target/cov/$(basename $file)"; ./kcov-build/usr/local/bin/kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file"; done &&
30
+ bash <(curl -s https://codecov.io/bash) &&
31
+ echo "Uploaded code coverage"; fi
You can’t perform that action at this time.
0 commit comments