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