We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19e018c commit 14bd2ffCopy full SHA for 14bd2ff
.travis.gofmt.sh
@@ -0,0 +1,10 @@
1
+#!/bin/bash
2
+
3
+cd "$(dirname $0)"
4
5
+BADLY_FORMATTED="$(go fmt ./...)"
6
7
+if [[ -n $BADLY_FORMATTED ]]; then
8
+ echo "The following files are badly formatted: $BADLY_FORMATTED"
9
+ exit 1
10
+fi
.travis.yml
@@ -2,4 +2,6 @@ language: go
install: go get
-script: go test -short
+script:
+ - ./.travis.gofmt.sh
+ - go test -short
0 commit comments