Pure import of lightning-invoice crate
[rust-lightning] / lightning-invoice / .travis-kcov.sh
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