2019-08-15 11:10:48 +03:00
|
|
|
#!/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
|
|
|
|
|
2021-05-25 13:22:28 +02:00
|
|
|
# TODO: remove GO111MODULE once gh-ost uses Go modules
|
2019-08-15 11:10:48 +03:00
|
|
|
echo "Running unit tests"
|
2021-05-25 13:22:28 +02:00
|
|
|
GO111MODULE=off go test ./go/...
|