From efba922785b7ca9fc30a68ee60153c62d67f9f5b Mon Sep 17 00:00:00 2001 From: Romain Ruetschi Date: Fri, 16 Feb 2018 16:39:46 +0100 Subject: [PATCH] Configure kcov and coveralls.io --- .travis.yml | 23 +++++++++++++++++++++++ Cargo.toml | 4 ++++ README.md | 5 ++++- 3 files changed, 31 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index df52c66..8e4c641 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,6 @@ +sudo: required + language: rust rust: @@ -10,6 +12,27 @@ matrix: allow_failures: - rust: nightly +env: + global: + - RUSTFLAGS="-C link-dead-code" + +addons: + apt: + packages: + - libcurl4-openssl-dev + - libdw-dev + - cmake + - g++ + - pkg-config + - binutils-dev + - libiberty-dev + script: - cargo build --verbose --all-features - cargo test --verbose --all-features + +after_success: + - cargo install cargo-kcov + - cargo kcov --print-install-kcov-sh | sh + - cargo kcov --verbose --features dss --coveralls + diff --git a/Cargo.toml b/Cargo.toml index 0aae011..985e1ea 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,6 +13,10 @@ license = "BSD-3-Clause" readme = "README.md" build = "build.rs" +[badges] +travis-ci = { repository = "SpinResearch/RustySecrets", branch = "master" } +coveralls = { repository = "SpinResearch/RustySecrets", branch = "master", service = "github" } + [features] default = [] dss = [] diff --git a/README.md b/README.md index 28cd733..4b6451f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ # Rusty Secrets -[![Build Status](https://travis-ci.org/SpinResearch/RustySecrets.svg?branch=master)](https://travis-ci.org/SpinResearch/RustySecrets) [![Crates.io](https://img.shields.io/crates/v/rusty_secrets.svg)](https://crates.io/crates/rusty_secrets) [![LICENSE](https://img.shields.io/crates/l/rusty_secrets.svg)](https://github.com/SpinResearch/RustySecrets/blob/master/LICENSE) +[![Build Status](https://travis-ci.org/SpinResearch/RustySecrets.svg?branch=master)](https://travis-ci.org/SpinResearch/RustySecrets) +[![Coverage Status](https://coveralls.io/repos/github/SpinResearch/RustySecrets/badge.svg?branch=master)](https://coveralls.io/github/SpinResearch/RustySecrets?branch=master) +[![Crates.io](https://img.shields.io/crates/v/rusty_secrets.svg)](https://crates.io/crates/rusty_secrets) +[![LICENSE](https://img.shields.io/crates/l/rusty_secrets.svg)](https://github.com/SpinResearch/RustySecrets/blob/master/LICENSE) > Rusty Secrets is an implementation of a threshold [Shamir's secret sharing scheme](https://en.wikipedia.org/wiki/Shamir%27s_Secret_Sharing).