From 87110e7d710d625f75fd67aa7fa2c57d0998c144 Mon Sep 17 00:00:00 2001 From: Johann Date: Thu, 12 Nov 2015 22:38:35 +0100 Subject: [PATCH] Report test coverage with travis-cargo & coveralls As this project grows, it might be beneficial to require pull requests to keep a certain level of test coverage. Plus it's a fun statistic. --- .travis.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index f9a7f255ff3a..df218c371154 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,9 +11,25 @@ cache: directories: - $HOME/.cargo +addons: + apt: + packages: + - libcurl4-openssl-dev + - libelf-dev + - libdw-dev + +before_script: +- | + pip install 'travis-cargo<0.2' --user && + export PATH=$HOME/.local/bin:$PATH + script: - - cargo build - - cargo test +- | + travis-cargo build && + travis-cargo test + +after_success: +- travis-cargo coveralls --no-sudo before_deploy: # TODO: cross build