Skip to content

Commit

Permalink
add benchmarks to Travis builds and comparisons with master for pull …
Browse files Browse the repository at this point in the history
…requests
  • Loading branch information
Geal committed Nov 5, 2016
1 parent ae46de6 commit 4671c4d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,19 @@ script:
after_success:
- travis-cargo bench
- travis-cargo coveralls --no-sudo
after_success:
- if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then
cargo bench;
fi
- if [ "${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}" != "master" ] && [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then
cargo install cargo-benchcmp --force; # not using --force will fail if it's already on the system
cargo bench > benches-variable;
git fetch;
git checkout master;
cargo bench > benches-control;
cargo benchcmp benches-control benches-variable;
fi


notifications:
webhooks:
Expand Down

0 comments on commit 4671c4d

Please sign in to comment.