File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 44 - 1.7.x
55 - 1.8.x
66 - 1.9.x
7+ - 1.10.x
78 - master
89
910before_install :
@@ -21,7 +22,7 @@ matrix:
2122 - env : DB=MYSQL57
2223 sudo : required
2324 dist : trusty
24- go : 1.9 .x
25+ go : 1.10 .x
2526 services :
2627 - docker
2728 before_install :
@@ -43,7 +44,7 @@ matrix:
4344 - env : DB=MARIA55
4445 sudo : required
4546 dist : trusty
46- go : 1.9 .x
47+ go : 1.10 .x
4748 services :
4849 - docker
4950 before_install :
@@ -65,7 +66,7 @@ matrix:
6566 - env : DB=MARIA10_1
6667 sudo : required
6768 dist : trusty
68- go : 1.9 .x
69+ go : 1.10 .x
6970 services :
7071 - docker
7172 before_install :
@@ -87,6 +88,6 @@ matrix:
8788script :
8889 - go test -v -covermode=count -coverprofile=coverage.out
8990 - go vet ./...
90- - test -z "$(gofmt -d -s . | tee /dev/stderr)"
91+ - .travis/gofmt.sh
9192after_script :
9293 - $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -ev
3+
4+ # Only check for go1.10+ since the gofmt style changed
5+ if [[ $( go version) =~ go1\. ([0-9]+) ]] && (( ${BASH_REMATCH[1]} >= 10 )) ; then
6+ test -z " $( gofmt -d -s . | tee /dev/stderr) "
7+ fi
You can’t perform that action at this time.
0 commit comments