mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2024-12-28 18:25:46 +00:00
f398784f99
Changes made: * Call autogen.sh before building protobuf. It's unclear how this worked before, but the README instructions for protobuf does state to run autogen.sh prior to building and installing. * Fix downloadArchive to take in a prefix path rather than the number of prefix directories to skip. The reason for this change is due to a bug in the Go build system where unexpected directories were being packed. See https://golang.org/issue/29906 * Explicitly set Travis dist to be "xenial", which comes with Go1.11. We require Go1.11 for two reasons: * The use of t.Helper in integration_test.go * Proper understanding of the -mod=vendor flag (even if all that flag does is disable modules). * Add a hack to integration_test.go to periodically output the timestamp to work around a restriction in Travis where it auto-kills the test after 10 minutes of no stdout activity. Change-Id: I114fe2855faeed091c34d79df3d97068be7eccd8 Reviewed-on: https://go-review.googlesource.com/c/164919 Reviewed-by: Herbie Ong <herbie@google.com>
9 lines
276 B
Bash
Executable File
9 lines
276 B
Bash
Executable File
#!/bin/bash
|
|
# Copyright 2018 The Go Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style
|
|
# license that can be found in the LICENSE file.
|
|
|
|
cd "$(git rev-parse --show-toplevel)"
|
|
go test -v -mod=vendor -timeout=60m integration_test.go "$@"
|
|
exit $?
|