Skip to content

Commit

Permalink
Code coverage using cargo-travis on coveralls.
Browse files Browse the repository at this point in the history
  • Loading branch information
WaDelma committed Sep 18, 2017
1 parent 414d6ae commit 1b2a2c1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
19 changes: 18 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,20 @@ rust:
- nightly
- stable

cache: cargo
cache:
cargo: true
apt: true

addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
- cmake
sources:
- kalakris-cmake

branches:
only:
Expand All @@ -12,6 +25,7 @@ branches:
- master

before_script:
- cargo install --force cargo-travis
- export PATH="$PATH:$HOME/.cargo/bin"
- if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then
which rustfmt && cargo uninstall rustfmt;
Expand Down Expand Up @@ -39,6 +53,9 @@ script:
- cargo test --manifest-path ./specs-derive/Cargo.toml --verbose

after_success: |
if [ "$TRAVIS_RUST_VERSION" == "stable" ]; then
cargo coveralls --exclude-pattern tests/;
fi
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
[ $TRAVIS_RUST_VERSION = stable ] &&
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> **S**pecs **P**arallel **ECS**
[![Build Status][bi]][bl] [![Crates.io][ci]][cl] [![Gitter][gi]][gl] ![MIT/Apache][li] [![Docs.rs][di]][dl]
[![Build Status][bi]][bl] [![Crates.io][ci]][cl] [![Gitter][gi]][gl] ![MIT/Apache][li] [![Docs.rs][di]][dl] [![Coverage][cci]][ccl]

[bi]: https://travis-ci.org/slide-rs/specs.svg?branch=master
[bl]: https://travis-ci.org/slide-rs/specs
Expand All @@ -18,6 +18,9 @@
[gi]: https://badges.gitter.im/slide-rs/specs.svg
[gl]: https://gitter.im/slide-rs/specs

[cci]: https://coveralls.io/repos/github/slide-rs/specs/badge.svg?branch=master
[ccl]: https://coveralls.io/github/slide-rs/specs?branch=master

Specs is an Entity-Component System written in Rust.
Unlike most other ECS libraries out there, it provides

Expand Down

0 comments on commit 1b2a2c1

Please sign in to comment.