From f789cf1403b16b5e44ebe4eba8b92aebf730286e Mon Sep 17 00:00:00 2001 From: James Shubin Date: Fri, 25 Sep 2015 01:29:17 -0400 Subject: [PATCH] Add travis-ci integration --- .travis.yml | 25 +++++++++++++++++++++++++ test/test-yamlfmt.sh | 5 +++++ 2 files changed, 30 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..b13802a5 --- /dev/null +++ b/.travis.yml @@ -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 diff --git a/test/test-yamlfmt.sh b/test/test-yamlfmt.sh index 14cb0450..399eacd8 100755 --- a/test/test-yamlfmt.sh +++ b/test/test-yamlfmt.sh @@ -5,6 +5,11 @@ set -o errexit set -o nounset 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}")/.. RUBY=`which ruby`