-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
35 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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="" |