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

Commit a70f7c9

Browse files
committed
kcov fixes
1 parent 48f8dee commit a70f7c9

File tree

2 files changed

+23
-16
lines changed

2 files changed

+23
-16
lines changed

.travis-kcov.sh

+14
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

+9-16
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

0 commit comments

Comments
 (0)