summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2018-01-05 14:41:09 +0900
committerIWASE Yusuke <iwase.yusuke0@gmail.com>2018-01-05 15:03:38 +0900
commitc5a970b2f3cdd81c39dc65c723b3de7bcd4f9694 (patch)
treeba542258a018ea19cfb7af9d894f0ba3b1e8a4b7
parent77136fac6dfd8a70ef5375b321fd05d7736659a7 (diff)
travis: Run "dep ensure" before "go fmt" and "go vet"
Because "satori/go.uuid" changed some syntax of its API, "go fmt" and "go vet" commands will fail with the latest codes. This patch fixes to run dep ensure before running these tests and solves this problem. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
-rw-r--r--.travis.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index 77a7414f..6703baed 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -89,10 +89,10 @@ matrix:
#
# Misc
#
- - <<: *_go
- script: test -z "$(go fmt ./...)"
- - <<: *_go
- script: test -z "$(go vet ./...)"
+ - <<: *_dep_ensure
+ script: test -z "$(go fmt $(go list ./... | grep -v '/vendor/'))"
+ - <<: *_dep_ensure
+ script: test -z "$(go vet $(go list ./... | grep -v '/vendor/'))"
- <<: *_dep_ensure
script: python test/scenario_test/ci-scripts/build_embeded_go.py docs/sources/lib.md
#