From ae3b1cfac9540f3604bfefe22d047b21c0e7b68d Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Tue, 27 Jan 2015 14:44:10 -0800 Subject: [PATCH] travis: Restore dependencies using godep. Signed-off-by: Andrea Luzzardi --- .travis.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 420424755b..ce9295b11e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,6 +22,9 @@ env: # let us have speedy Docker-based Travis workers sudo: false +before_install: + - go get github.com/tools/godep + install: # setup our current repo as "github.com/docker/swarm" in the GOPATH - mkdir -pv "${GOPATH%%:*}/src/github.com/docker" @@ -40,9 +43,9 @@ install: gvm cross "$_GOOS" "$_GOARCH"; export GOOS="$_GOOS" GOARCH="$_GOARCH"; fi - # snag any external Go dependencies + # restore vendored dependencies - if [ -z "$TRAVIS_GLOBAL_WTF" ]; then - go get -t -v ./...; + godep restore; fi # add some debugging output that's super helpful when adapting the Travis scripts (so that which environment variables are available in the exact situation being debugged can be seen easily, with real-life examples) - env | sort