1#!/usr/bin/env bash 2set -euxo pipefail 3 4# Install Go using the same travis approach 5echo "Installing ${GO_VERSION} with gimme." 6eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=${GO_VERSION} bash)" 7 8go get -v -u github.com/jstemmer/go-junit-report 9 10export GOFLAGS='-run=NONE -benchmem -bench=.' 11export OUT_FILE="build/bench.out" 12mkdir -p build 13 14make install test | tee ${OUT_FILE} 15go-junit-report < ${OUT_FILE} > build/junit-apm-agent-go-bench.xml 16