Add travis-ci integration

This commit is contained in:
James Shubin
2015-09-25 01:29:17 -04:00
parent 19a909001b
commit f789cf1403
2 changed files with 30 additions and 0 deletions

25
.travis.yml Normal file
View File

@@ -0,0 +1,25 @@
language: go
go:
- 1.4.2
- 1.5.1
- tip
sudo: false
install:
- 'go get ./...'
script: 'make test'
matrix:
allow_failures:
- go: tip
notifications:
irc:
channels:
- "irc.freenode.net#mgmtconfig"
template:
- "%{repository} (%{commit}: %{author}): %{message}"
- "More info : %{build_url}"
on_success: always
on_failure: always
use_notice: false
skip_join: false
email:
- travis-ci@shubin.ca

View File

@@ -5,6 +5,11 @@ set -o errexit
set -o nounset set -o nounset
set -o pipefail set -o pipefail
if env | grep -q '^TRAVIS=true$'; then
echo "Travis gives wonky results here, skipping test!"
exit 0
fi
ROOT=$(dirname "${BASH_SOURCE}")/.. ROOT=$(dirname "${BASH_SOURCE}")/..
RUBY=`which ruby` RUBY=`which ruby`