5b0231b027
Run gofmt -l . during travis to catch pull requests that have not had gofmt run on them. Change-Id: Ibfdf988a535d82721f3c4bc328b189f606f12778
7 lines
111 B
Bash
Executable file
7 lines
111 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if [ -n "$(gofmt -l .)" ]; then
|
|
echo "Go code is not formatted:"
|
|
gofmt -d .
|
|
exit 1
|
|
fi
|