Skip to content

Commit

Permalink
ci: resurrect code coverage
Browse files Browse the repository at this point in the history
Fixes 3Hren#110.
  • Loading branch information
euclio committed Apr 24, 2017
1 parent d5962e7 commit 302fe3b
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
language: rust

sudo: false
language: rust

# Necessary for `travis-cargo coveralls --no-sudo`.
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
- cmake
sources:
- kalakris-cmake

rust:
- 1.13.0
- stable
- nightly
- stable
- 1.13.0

env:
- CRATE=rmp
Expand All @@ -29,13 +31,15 @@ matrix:
- rust: 1.13.0
env: CRATE=rmpv-tests

# Load travis-cargo.
before_script:
- pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
- |
cargo install -f cargo-travis &&
export PATH=$HOME/.cargo/bin:$PATH
script:
- (cd $CRATE && cargo test --verbose);
- |
(cd $CRATE && cargo test --verbose)
# Measure code coverage and upload to coveralls.io.
after_success:
- (cd $CRATE && travis-cargo coveralls --no-sudo)
- |
(cd $CRATE && cargo coveralls)

0 comments on commit 302fe3b

Please sign in to comment.