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.
This commit is contained in:
Johann 2015-11-12 22:38:35 +01:00
parent eed83e4834
commit 87110e7d71

View File

@ -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