-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build script: Added go fmt/go vet validation
- Loading branch information
Showing
1 changed file
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
if [ $(go fmt | tee /dev/fd/2 | wc -l) != 0 ]; then | ||
echo "Refusing to build, go fmt had something to say" | ||
exit 1 | ||
fi | ||
if [ $(go vet | tee /dev/fd/2 | wc -l) != 0 ]; then | ||
echo "Refusing to build, go vet had something to say" | ||
exit 1 | ||
fi | ||
gox --osarch="darwin/386 darwin/amd64 linux/386 linux/amd64 windows/386 windows/amd64 freebsd/386" github.com/tigrawap/slit | ||
echo "Build successful" |