1
0
mirror of https://github.com/docker/docs.git synced 2026-10-31 10:34:26 +03:00

travis: Restore dependencies using godep.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi
2015-01-27 14:44:10 -08:00
parent 23302fca3e
commit ae3b1cfac9

View File

@@ -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