Merge pull request #262 from jzelinskie/travis

travis: update to use Go 1.7, glide
This commit is contained in:
Jimmy Zelinskie 2016-11-11 12:23:32 -05:00 committed by GitHub
commit eed4a9a7dd

View File

@ -1,26 +1,19 @@
language: go language: go
go: go:
- 1.6 - 1.7
- 1.5
- tip - tip
sudo: false sudo: false
before_install:
- export GO15VENDOREXPERIMENT=1
- RepoName=`basename $PWD`; SrcDir=`dirname $PWD`; DestDir="`dirname $SrcDir`/coreos"
- if [[ "$SrcDir" != "$DestDir" ]]; then mv "$SrcDir" "$DestDir"; cd ../../coreos/$RepoName; export TRAVIS_BUILD_DIR=`dirname $TRAVIS_BUILD_DIR`/$RepoName; fi
install: install:
- echo 'nop' - mkdir $GOPATH/bin && curl https://glide.sh/get | sh
script: script:
- go test -v $(go list ./... | grep -v /vendor/) - go test $(glide novendor | grep -v contrib)
services: services:
- postgresql - postgresql
addons: addons:
apt: apt: