github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/build/teamcity-compose.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 tc_start_block "Prepare environment for compose tests" 10 # Disable global -json flag. 11 type=$(GOFLAGS=; go env GOOS) 12 tc_end_block "Prepare environment for compose tests" 13 14 tc_start_block "Compile CockroachDB" 15 # Buffer noisy output and only print it on failure. 16 run pkg/compose/prepare.sh &> artifacts/compose-compile.log || (cat artifacts/compose-compile.log && false) 17 rm artifacts/compose-compile.log 18 tc_end_block "Compile CockroachDB" 19 20 tc_start_block "Compile compose tests" 21 run build/builder.sh mkrelease "$type" -Otarget testbuild PKG=./pkg/compose TAGS=compose 22 tc_end_block "Compile compose tests" 23 24 tc_start_block "Run compose tests" 25 run cd pkg/compose 26 # run_text_test needs ./artifacts to be the artifacts folder. 27 ln -s ../../artifacts artifacts 28 run_text_test github.com/cockroachdb/cockroach/pkg/compose ./compose.test -test.v -test.timeout 30m 29 run cd ../.. 30 tc_end_block "Run compose tests"