Merge pull request #11 from stackanetes/add_travis

Create .travis.yml
This commit is contained in:
Quentin Machu 2016-10-12 15:01:21 +02:00 committed by GitHub
commit 24c6647234

26
.travis.yml Normal file
View File

@ -0,0 +1,26 @@
language: go
go:
- 1.6
- 1.5
- 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'
script:
- go test -v $(go list ./... | grep -v /vendor/)
notifications:
email: false
matrix:
allow_failures:
- go: tip