mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
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:
parent
eed83e4834
commit
87110e7d71
20
.travis.yml
20
.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
|
||||
|
Loading…
Reference in New Issue
Block a user