Skip to content

Commit

Permalink
Add coveralls in .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fflorent committed Jun 24, 2017
1 parent 100c689 commit 85a4742
Showing 1 changed file with 35 additions and 8 deletions.
43 changes: 35 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,47 @@
language: rust
sudo: false
cache: cargo
dist: trusty

addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev

rust:
- stable
- beta
- nightly

# load travis-cargo
before_script:
- |
pip install 'travis-cargo<0.2' --user &&
export PATH=$HOME/.local/bin:$PATH
- cargo install cargo-travis --force && export PATH=$HOME/.cargo/bin:$PATH;

script:
- cargo build --verbose --all
- cargo test --verbose --all
- |
travis-cargo build &&
travis-cargo test &&
travis-cargo bench &&
travis-cargo --only stable doc
# Inspired from geal/nom
after_success:
- if [ "${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}" != "master" ] && [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then
cargo install cargo-benchcmp --force;
cargo bench > benches-variable;
git fetch;
git checkout master;
cargo bench > benches-control;
cargo benchcmp benches-control benches-variable;
cargo install cargo-benchcmp --force;
cargo bench > benches-variable;
git fetch;
git checkout master;
cargo bench > benches-control;
cargo benchcmp benches-control benches-variable;
fi
- cargo coveralls --verbose;

env:
global:
- TRAVIS_CARGO_NIGHTLY_FEATURE=""

0 comments on commit 85a4742

Please sign in to comment.