8f42dedef8
* Add GO111MODULE=off to build.sh * Use golang 1.16 * Update go version in README.md * Add missing GO111MODULE=off * Add missing GO111MODULE=off again * Use go1.16.3 explicitly * Use 1.16 for CI test * Update min go version * Use go 1.16.4
19 lines
331 B
Bash
Executable File
19 lines
331 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
. script/bootstrap
|
|
|
|
echo "Verifying code is formatted via 'gofmt -s -w go/'"
|
|
gofmt -s -w go/
|
|
git diff --exit-code --quiet
|
|
|
|
echo "Building"
|
|
script/build
|
|
|
|
cd .gopath/src/github.com/github/gh-ost
|
|
|
|
# TODO: remove GO111MODULE once gh-ost uses Go modules
|
|
echo "Running unit tests"
|
|
GO111MODULE=off go test ./go/...
|