github.com/waldiirawan/apm-agent-go/v2@v2.2.2/scripts/jenkins/test.sh (about)

     1  #!/usr/bin/env bash
     2  set -euxo pipefail
     3  
     4  source ./scripts/jenkins/setenv.sh
     5  
     6  # Run the tests
     7  set +e
     8  export OUT_FILE="build/test-report.out"
     9  mkdir -p build
    10  make test 2>&1 | tee ${OUT_FILE}
    11  status=$?
    12  
    13  go-junit-report > "build/junit-apm-agent-go-${GO_VERSION}.xml" < ${OUT_FILE}
    14  
    15  exit ${status}