github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/build/teamcity-test.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/test
    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/c-build.log || (cat artifacts/c-build.log && false)
    15  rm artifacts/c-build.log
    16  tc_end_block "Compile C dependencies"
    17  
    18  maybe_stress stress
    19  
    20  tc_start_block "Run Go tests"
    21  run_json_test build/builder.sh stdbuf -oL -eL make test GOTESTFLAGS=-json TESTFLAGS='-v'
    22  tc_end_block "Run Go tests"
    23  
    24  tc_start_block "Run C++ tests"
    25  # Buffer noisy output and only print it on failure.
    26  run build/builder.sh make check-libroach &> artifacts/c-tests.log || (cat artifacts/c-tests.log && false)
    27  tc_end_block "Run C++ tests"