github.com/waldiirawan/apm-agent-go/v2@v2.2.2/scripts/jenkins/docker-test.sh (about) 1 #!/usr/bin/env bash 2 set -euxo pipefail 3 4 source ./scripts/jenkins/setenv.sh 5 6 7 export COV_FILE="build/coverage/coverage.cov" 8 export OUT_FILE="build/test-report.out" 9 mkdir -p build/coverage 10 11 echo "W3C Distributed Tracing Validation" 12 ./scripts/docker-compose-testing run -T --rm trace-context-harness 13 14 ./scripts/docker-compose-testing up -d --build 15 ./scripts/docker-compose-testing run -T --rm go-agent-tests make coverage GOFLAGS=-v 2> >(tee ${OUT_FILE} 1>&2) > ${COV_FILE} 16 17 gocover-cobertura < "${COV_FILE}" > build/coverage/coverage-apm-agent-go-docker-report.xml 18 go-junit-report > build/junit-apm-agent-go-docker.xml < ${OUT_FILE}