From 20456c894e794f7775c7e42314407a4c514a248a Mon Sep 17 00:00:00 2001 From: Shlomi Noach Date: Fri, 12 Aug 2016 16:21:29 +0200 Subject: [PATCH] manual fix to branch --- .github/PULL_REQUEST_TEMPLATE.md | 1 + .travis.yml | 7 +++++++ test.sh | 13 +++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 .travis.yml create mode 100755 test.sh diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 642c2ee..4dc48fd 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -18,3 +18,4 @@ This PR [briefly explain what is does] - [ ] contributed code is using same conventions as original code - [ ] code is formatted via `gofmt` (please avoid `goimports`) - [ ] code is built via `./build.sh` +- [ ] code is tested via `./test.sh` diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..01078c0 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,7 @@ +language: go + +go: + - 1.6 + - tip + +script: ./test.sh diff --git a/test.sh b/test.sh new file mode 100755 index 0000000..ff514fa --- /dev/null +++ b/test.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +retval=0 + +for testsuite in base mysql sql +do + pushd go/${testsuite} > /dev/null; + go test $*; + [ $? -ne 0 ] && retval=1 + popd > /dev/null; +done + +exit $retval