From ae670e1f7cca8e743e39b039e5be226dc4375e9a Mon Sep 17 00:00:00 2001 From: Nikhita Raghunath Date: Fri, 5 Oct 2018 16:32:14 +0530 Subject: [PATCH] travis: run godep restore for non-master branches --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index b80875ca..fbd81d86 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,4 +5,6 @@ go_import_path: k8s.io/client-go go: - 1.10.2 -script: go build ./... +script: + - if [ "$TRAVIS_BRANCH" != "master" ]; then godep restore; fi + - go build ./...