Pure import of lightning-invoice crate
[rust-lightning] / lightning-invoice / .travis-kcov.sh
diff --git a/lightning-invoice/.travis-kcov.sh b/lightning-invoice/.travis-kcov.sh
new file mode 100644 (file)
index 0000000..235f921
--- /dev/null
@@ -0,0 +1,14 @@
+shopt -s extglob
+
+rm -r target
+cargo test
+mkdir target/kcov target/kcov/unit target/kcov/integration target/kcov/merged
+ls target
+kcov --verify target/kcov/unit target/debug/lightning_invoice-!(*.d)
+kcov --verify target/kcov/integration target/debug/ser_de-!(*.d)
+kcov --include-pattern="$(pwd)/src" --merge target/kcov/merged target/kcov/unit target/kcov/integration
+find . -type l | xargs -n 1 rm
+
+git add -f target/kcov
+git commit -m "last kcov result"
+git push -f https://sgeisler:$GITHUB_TOKEN@github.com/rust-bitcoin/rust-lightning-invoice.git HEAD:gh-pages
\ No newline at end of file