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

Commit 47ade71

Browse files
committed
kcov fixes
1 parent 48f8dee commit 47ade71

File tree

3 files changed

+24
-16
lines changed

3 files changed

+24
-16
lines changed

.travis-kcov.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
shopt -s extglob
2+
3+
rm -r target
4+
cargo test
5+
mkdir target/kcov target/kcov/unit target/kcov/integration target/kcov/merged
6+
ls target
7+
kcov --verify target/kcov/unit target/debug/lightning_invoice-!(*.d)
8+
kcov --verify target/kcov/integration target/debug/ser_de-!(*.d)
9+
kcov --include-pattern="$(pwd)/src" --merge target/kcov/merged target/kcov/unit target/kcov/integration
10+
find . -type l | xargs -n 1 rm
11+
12+
git add -f target/kcov
13+
git commit -m "last kcov result"
14+
git push -f https://sgeisler:$GITHUB_TOKEN@github.com/rust-bitcoin/rust-lightning-invoice.git HEAD:gh-pages

.travis.yml

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,16 @@ rust:
77
- 1.14.0 # rustc on debian stable
88
cache: cargo
99

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
10+
jobs:
11+
include:
12+
- stage: test
13+
script: cargo test
14+
- stage: coverage
2115
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)
16+
branches:
17+
only:
18+
- master
19+
script: bash .travis-kcov.sh
2720

2821
before_install:
2922
- sudo apt-get update

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# lightning-invoice (WIP)
22
[![Build Status](https://travis-ci.org/rust-bitcoin/rust-lightning-invoice.svg?branch=master)](https://travis-ci.org/rust-bitcoin/rust-lightning-invoice)
3+
[Coverage Report](https://rust-bitcoin.github.io/rust-lightning-invoice/target/kcov/merged/)
34

45
This repo provides datastructures for BOLT 11 lightning invoices.
56
It provides functions to parse and serialize invoices from and to bech32.

0 commit comments

Comments
 (0)