Commit 08bad530 by bergquist

tech(build): fail when go fmt fails

parent 8ed89225
#!/bin/bash
function exit_if_fail {
command=$@
echo "Executing '$command'"
......@@ -13,7 +10,6 @@ function exit_if_fail {
fi
}
cd /home/ubuntu/.go_workspace/src/github.com/grafana/grafana
rm -rf node_modules
......@@ -23,7 +19,8 @@ npm install
exit_if_fail npm test
exit_if_fail npm run coveralls
test -z "$(gofmt -s -l ./pkg/... | tee /dev/stderr)"
#test -z "$(gofmt -s -l ./pkg/... | tee /dev/stderr)"
exit_if_fail test -z "$(gofmt -s -l ./pkg/... | tee /dev/stderr)"
exit_if_fail go run build.go setup
exit_if_fail go run build.go build
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment