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,31 +1,24 @@
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:
packages: packages:
- rpm - rpm
postgresql: "9.4" postgresql: "9.4"
notifications: notifications:
@ -33,4 +26,4 @@ notifications:
matrix: matrix:
allow_failures: allow_failures:
- go: tip - go: tip