Skip to content
This repository was archived by the owner on Apr 13, 2021. It is now read-only.

Commit 48f8dee

Browse files
authored
Merge pull request #11 from rust-bitcoin/kcov
Add coverage reporting with kcov
2 parents c6b32c0 + 501167d commit 48f8dee

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.travis.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,32 @@
11
language: rust
2+
sudo: required
23
rust:
34
- nightly
45
- beta
56
- stable
67
- 1.14.0 # rustc on debian stable
78
cache: cargo
9+
10+
script:
11+
- cargo test
12+
13+
deploy:
14+
provider: pages
15+
skip-cleanup: true
16+
github-token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
17+
keep-history: true
18+
local-dir: target/kcov/merged
19+
on:
20+
branch: master
21+
rust: stable
22+
script:
23+
- mkdir target/kcov target/kcov/unit target/kcov/integration target/kcov/merged
24+
- kcov target/kcov/unit target/debug/lightning_invoice-!(*.d)
25+
- kcov target/kcov/integration target/debug/ser_de-!(*.d)
26+
- kcov target/kcov/unit target/debug/lightning_invoice-!(*.d)
27+
28+
before_install:
29+
- sudo apt-get update
30+
- sudo apt-get install cmake g++ pkg-config jq libcurl4-openssl-dev libelf-dev libdw-dev binutils-dev libiberty-dev
31+
- cargo install cargo-kcov || true
32+
- cargo kcov --print-install-kcov-sh | sh

0 commit comments

Comments
 (0)