github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/build/teamcity-bench.sh (about) 1 #!/usr/bin/env bash 2 3 set -euo pipefail 4 5 source "$(dirname "${0}")/teamcity-support.sh" 6 7 tc_prepare 8 9 export TMPDIR=$PWD/artifacts/bench 10 mkdir -p "$TMPDIR" 11 12 tc_start_block "Compile C dependencies" 13 # Buffer noisy output and only print it on failure. 14 run build/builder.sh make -Otarget c-deps &> artifacts/bench-c-build.log || (cat artifacts/bench-c-build.log && false) 15 rm artifacts/bench-c-build.log 16 tc_end_block "Compile C dependencies" 17 18 tc_start_block "Run Benchmarks" 19 echo "Test parsing does not work here, see https://youtrack.jetbrains.com/issue/TW-63449" 20 echo "Consult artifacts/failures.txt instead" 21 run_json_test build/builder.sh stdbuf -oL -eL \ 22 make benchshort GOTESTFLAGS=-json TESTFLAGS='-v' 23 tc_end_block "Run Benchmarks"