Skip to content

Commit

Permalink
chore: pull in latest flakybot (googleapis#522)
Browse files Browse the repository at this point in the history
  • Loading branch information
codyoss committed Jan 25, 2021
1 parent 8081c04 commit f46fe6c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions internal/kokoro/test.sh
Expand Up @@ -18,7 +18,6 @@ export PATH="$GOPATH/bin:$PATH"
export GO111MODULE=on
mkdir -p $GENPROTO_HOME


# Move code into $GOPATH and get dependencies
git clone . $GENPROTO_HOME
cd $GENPROTO_HOME
Expand All @@ -36,15 +35,15 @@ set +e
# Run tests and tee output to log file, to be pushed to GCS as artifact.
go test -race -v ./... 2>&1 | tee $KOKORO_ARTIFACTS_DIR/sponge_log.log

cat $KOKORO_ARTIFACTS_DIR/sponge_log.log | go-junit-report -set-exit-code > $KOKORO_ARTIFACTS_DIR/sponge_log.xml
cat $KOKORO_ARTIFACTS_DIR/sponge_log.log | go-junit-report -set-exit-code >$KOKORO_ARTIFACTS_DIR/sponge_log.xml
exit_code=$?

# Send logs to the Build Cop Bot for continuous builds.
# Send logs to Flaky Bot for continuous builds.
if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"continuous"* ]]; then
chmod +x $KOKORO_GFILE_DIR/linux_amd64/buildcop
$KOKORO_GFILE_DIR/linux_amd64/buildcop \
chmod +x $KOKORO_GFILE_DIR/linux_amd64/flakybot
$KOKORO_GFILE_DIR/linux_amd64/flakybot \
-logs_dir=$KOKORO_ARTIFACTS_DIR \
-repo=googleapis/go-genproto
fi

exit $exit_code
exit $exit_code

0 comments on commit f46fe6c

Please sign in to comment.