Skip to content
This repository has been archived by the owner on Feb 24, 2023. It is now read-only.

Commit

Permalink
Add coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
mar-v-in committed Jul 3, 2018
1 parent 33ee782 commit 7cbee14
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
1 change: 1 addition & 0 deletions .coveralls.yml
@@ -0,0 +1 @@
service_name: travis-pro
34 changes: 33 additions & 1 deletion .travis.yml
@@ -1,10 +1,42 @@
language: rust

# See travis-ci/travis-ci#9061
sudo: required

# Cache cargo symbols for faster build
cache: cargo

# Dependencies of kcov, used by coverage
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
- cmake # also required for cargo-update
sources:
- kalakris-cmake

# run builds for all the trains (and more)
rust:
- stable
- beta
- nightly

matrix:
allow_failures:
- rust: nightly
fast_finish: true
fast_finish: true

before_script:
- export PATH=$HOME/.cargo/bin:$PATH
- cargo install cargo-update || echo "cargo-update already installed"
- cargo install cargo-travis || echo "cargo-travis already installed"
- cargo install-update -a # update outdated cached binaries
- pip install --user python-coveralls

after_success:
# measure code coverage and upload to coveralls.io
- cargo coveralls --exclude-pattern /libargon2-sys,/tests,/beserial -p nimiq
- coveralls --merge=target/kcov/merged-kcov-output/coveralls.out

0 comments on commit 7cbee14

Please sign in to comment.