Skip to content

Commit

Permalink
Merge 5c0c998 into b0388c6
Browse files Browse the repository at this point in the history
  • Loading branch information
Stéphan Kochen committed Dec 4, 2017
2 parents b0388c6 + 5c0c998 commit 5c9b03e
Showing 1 changed file with 28 additions and 38 deletions.
66 changes: 28 additions & 38 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,31 @@
sudo: false

language: rust
env: RUSTFLAGS="-C link-dead-code"
matrix:
include:
- rust: stable
- rust: beta
- rust: nightly
allow_failures:
- rust: nightly
fast_finish: true

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

before_script:
- |
cargo install --force cargo-travis &&
export PATH=$HOME/.cargo/bin:$PATH
script:
- cargo build --verbose
Expand All @@ -10,40 +35,5 @@ script:
cargo install clippy && cargo clippy -- -Dclippy
fi
matrix:
fast_finish: true
allow_failures:
- rust: nightly
# I'd love to just use travis-cargo for all this, but it's broken:
# https://github.com/huonw/travis-cargo/pull/58
include:
- rust: nightly
- rust: beta
- rust: stable
env: RUSTFLAGS="-C link-dead-code"
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
after_success:
- |
# Fetch and build kcov
wget "https://github.com/SimonKagstrom/kcov/archive/master.zip"
unzip master.zip
mkdir kcov-master/build
pushd kcov-master/build
cmake ..
make
popd
# Run each binary under kcov
for binary in target/debug/portier_broker-*; do
echo "Generating coverage for $binary"
./kcov-master/build/src/kcov --verify --exclude-pattern=/.cargo,target/debug target/kcov/ $binary
done
echo "Merging and uploading coverage"
./kcov-master/build/src/kcov --merge --coveralls-id="$TRAVIS_JOB_ID" target/kcov-merged target/kcov/portier_broker-*
after_success:
- cargo coveralls

0 comments on commit 5c9b03e

Please sign in to comment.