Skip to content

Commit

Permalink
Skip gofmt on Go 1.10
Browse files Browse the repository at this point in the history
Go 1.10 and 1.11 don't agree :(
  • Loading branch information
fsouza committed Aug 27, 2018
1 parent 868410a commit a7b85d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ vet:
go vet ./...

fmtcheck:
[ -z "$$(gofmt -s -d *.go ./testing | tee /dev/stderr)" ]
if [ -z "$${SKIP_FMT_CHECK}" ]; then [ -z "$$(gofmt -s -d *.go ./testing | tee /dev/stderr)" ]; fi

testdeps:
go get -u github.com/golang/dep/cmd/dep
Expand Down
4 changes: 4 additions & 0 deletions travis-scripts/run-tests.bash
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

if [[ $TRAVIS_GO_VERSION == 1.10* ]]; then
export SKIP_FMT_CHECK=1
fi

make test

if [[ $TRAVIS_OS_NAME == "linux" ]]; then
Expand Down

0 comments on commit a7b85d6

Please sign in to comment.