2016-10-26 17:55:37 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
. script/bootstrap
|
|
|
|
|
2016-10-27 18:37:03 +00:00
|
|
|
echo "Verifying code is formatted via 'gofmt -s -w go/'"
|
|
|
|
gofmt -s -w go/
|
|
|
|
git diff --exit-code --quiet
|
2016-10-26 17:55:37 +00:00
|
|
|
|
2016-10-27 18:37:03 +00:00
|
|
|
echo "Building"
|
|
|
|
script/build
|
2016-10-26 17:55:37 +00:00
|
|
|
|
|
|
|
cd .gopath/src/github.com/github/gh-ost
|
2016-10-27 18:37:03 +00:00
|
|
|
|
|
|
|
echo "Running unit tests"
|
2016-10-26 17:55:37 +00:00
|
|
|
go test ./go/...
|
2018-02-11 11:33:40 +00:00
|
|
|
|
|
|
|
. script/localtests
|