mirror of
https://github.com/OMGeeky/tarpc.git
synced 2025-12-26 17:02:32 +01:00
Add bench to pre-push and .travis.yml
This commit is contained in:
@@ -21,8 +21,8 @@ before_script:
|
||||
|
||||
script:
|
||||
- |
|
||||
travis-cargo build && travis-cargo test &&
|
||||
travis-cargo build -- --features tls && travis-cargo test -- --features tls
|
||||
travis-cargo build && travis-cargo test && travis-cargo bench &&
|
||||
travis-cargo build -- --features tls && travis-cargo test -- --features tls && travis-cargo bench -- --features tls
|
||||
|
||||
after_success:
|
||||
- travis-cargo coveralls --no-sudo
|
||||
|
||||
@@ -61,8 +61,10 @@ PREPUSH_RESULT=0
|
||||
run_cargo() {
|
||||
if [ "$1" == "build" ]; then
|
||||
VERB=Building
|
||||
else
|
||||
elif [ "$1" == "test" ]; then
|
||||
VERB=Testing
|
||||
else
|
||||
VERB=Benching
|
||||
fi
|
||||
if [ "$2" != "" ]; then
|
||||
printf "${PREFIX} $VERB on $2... "
|
||||
@@ -125,6 +127,7 @@ else
|
||||
|
||||
run_cargo build
|
||||
run_cargo test
|
||||
run_cargo bench
|
||||
fi
|
||||
|
||||
exit $PREPUSH_RESULT
|
||||
|
||||
Reference in New Issue
Block a user