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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user