File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -41,11 +41,18 @@ echo "Running tests..."
41
41
42
42
COVER=${COVER:- " -cover" }
43
43
44
- echo " Checking gofmt..."
45
- fmtRes=$( gofmt -l $( find . -type f -name ' *.go' ! -path ' ./vendor/*' ) )
46
- if [ -n " ${fmtRes} " ]; then
47
- echo -e " gofmt checking failed:\n${fmtRes} "
48
- exit 255
44
+ # Disable gofmt on CI since it'll break when we'll use go 1.10 and go 1.11
45
+ #
46
+ # TODO(sgotti) Check against only one (usually the latest stable) go version
47
+ # gofmt output (for example gofmt in go 1.10 and 1.11 will format differently)
48
+ # or check that at least one passes
49
+ if [ " ${CI} " != " true" ]; then
50
+ echo " Checking gofmt..."
51
+ fmtRes=$( gofmt -l $( find . -type f -name ' *.go' ! -path ' ./vendor/*' ) )
52
+ if [ -n " ${fmtRes} " ]; then
53
+ echo -e " gofmt checking failed:\n${fmtRes} "
54
+ exit 255
55
+ fi
49
56
fi
50
57
51
58
echo " Checking govet..."
You can’t perform that action at this time.
0 commit comments