gh-ost/script/test

18 lines
281 B
Plaintext
Raw Permalink Normal View History

2019-08-15 08:10:48 +00: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
echo "Running unit tests"
2022-10-21 15:47:39 +00:00
go test -v -covermode=atomic ./go/...