Merge pull request #262 from jzelinskie/travis
travis: update to use Go 1.7, glide
This commit is contained in:
commit
eed4a9a7dd
19
.travis.yml
19
.travis.yml
@ -1,31 +1,24 @@
|
||||
language: go
|
||||
|
||||
go:
|
||||
- 1.6
|
||||
- 1.5
|
||||
- 1.7
|
||||
- tip
|
||||
|
||||
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:
|
||||
- echo 'nop'
|
||||
- mkdir $GOPATH/bin && curl https://glide.sh/get | sh
|
||||
|
||||
script:
|
||||
- go test -v $(go list ./... | grep -v /vendor/)
|
||||
- go test $(glide novendor | grep -v contrib)
|
||||
|
||||
services:
|
||||
- postgresql
|
||||
- postgresql
|
||||
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- rpm
|
||||
- rpm
|
||||
postgresql: "9.4"
|
||||
|
||||
notifications:
|
||||
@ -33,4 +26,4 @@ notifications:
|
||||
|
||||
matrix:
|
||||
allow_failures:
|
||||
- go: tip
|
||||
- go: tip
|
||||
|
Loading…
Reference in New Issue
Block a user