Change to make Travis-CI run correctly on forks of docker/swarm

Signed-off-by: Mike Goelzer <mike@goelzer.com>
This commit is contained in:
Mike Goelzer 2015-04-16 18:50:58 -07:00
parent 1aa61f9f36
commit 8d997d9d51
1 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,8 @@ go:
sudo: false
install:
# Symlink below is needed for Travis CI to work correctly on personal forks of swarm
- ln -s $HOME/gopath/src/github.com/${TRAVIS_REPO_SLUG///swarm/} $HOME/gopath/src/github.com/docker
- export GOPATH=${TRAVIS_BUILD_DIR}/Godeps/_workspace:$GOPATH
- export PATH=${TRAVIS_BUILD_DIR}/Godeps/_workspace/bin:$PATH
- go get code.google.com/p/go.tools/cmd/vet