move bench to a seprate, parallel step

This commit is contained in:
Rob Walker 2018-08-13 15:57:23 -07:00
parent c86e9e8568
commit fa44a71d3e
3 changed files with 19 additions and 2 deletions

View File

@ -3,7 +3,12 @@ steps:
name: "stable [public]"
env:
CARGO_TARGET_CACHE_NAME: "stable"
timeout_in_minutes: 60
timeout_in_minutes: 30
- command: "ci/docker-run.sh solanalabs/rust ci/test-bench.sh"
name: "bench [public]"
env:
CARGO_TARGET_CACHE_NAME: "bench"
timeout_in_minutes: 30
- command: "ci/shellcheck.sh"
name: "shellcheck [public]"
timeout_in_minutes: 20

13
ci/test-bench.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash -e
cd "$(dirname "$0")/.."
ci/version-check.sh stable
export RUST_BACKTRACE=1
_() {
echo "--- $*"
"$@"
}
_ cargo bench --verbose

View File

@ -13,7 +13,6 @@ _() {
_ cargo fmt -- --check
_ cargo build --verbose
_ cargo test --verbose
_ cargo bench --verbose
echo --- ci/localnet-sanity.sh
(