Use dep for TravisCI builds

This commit is contained in:
Dale Hui 2018-05-13 00:22:33 -07:00
parent 40cd326ed7
commit 36dc939f91
1 changed files with 7 additions and 2 deletions

View File

@ -22,9 +22,14 @@ cache:
- $GOPATH/src - $GOPATH/src
- $GOPATH/pkg - $GOPATH/pkg
before_install:
# Download the binary to bin folder in $GOPATH
- curl -L -s https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64 -o $GOPATH/bin/dep
# Make the binary executable
- chmod +x $GOPATH/bin/dep
install: install:
- make deps - dep ensure
- (cd $GOPATH/src/github.com/docker/docker && git fetch --all --tags --prune && git checkout v17.05.0-ce)
- sudo apt-get update && sudo apt-get --allow-downgrades install docker-ce=17.05.0* - sudo apt-get update && sudo apt-get --allow-downgrades install docker-ce=17.05.0*
- go get github.com/mattn/goveralls - go get github.com/mattn/goveralls