Merge pull request #635 from mgoelzer/fix-travis-on-forks

Change to make Travis CI run correctly on forks of docker/swarm
This commit is contained in:
Andrea Luzzardi 2015-04-18 19:59:54 -07:00
commit 9920b547e0
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