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

Add coverage reporting with kcov #11

Merged
merged 1 commit into from
Nov 3, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,32 @@
language: rust
sudo: required
rust:
- nightly
- beta
- stable
- 1.14.0 # rustc on debian stable
cache: cargo

script:
- cargo test

deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
keep-history: true
local-dir: target/kcov/merged
on:
branch: master
rust: stable
script:
- mkdir target/kcov target/kcov/unit target/kcov/integration target/kcov/merged
- kcov target/kcov/unit target/debug/lightning_invoice-!(*.d)
- kcov target/kcov/integration target/debug/ser_de-!(*.d)
- kcov target/kcov/unit target/debug/lightning_invoice-!(*.d)

before_install:
- sudo apt-get update
- sudo apt-get install cmake g++ pkg-config jq libcurl4-openssl-dev libelf-dev libdw-dev binutils-dev libiberty-dev
- cargo install cargo-kcov || true
- cargo kcov --print-install-kcov-sh | sh