From 0c193071edd69f596c01d97f21ec4e1cc0d46375 Mon Sep 17 00:00:00 2001 From: Karan Misra Date: Sun, 6 Apr 2014 04:06:22 +0530 Subject: [PATCH] ci: fix travis.yml so that failure is captured properly subtle errors in the config were causing test failures to be ignored --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3e57700..d875665 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,5 +6,5 @@ go: - tip script: - - go test -bench=. -v ./... | grep -v 'no test files' - - pushd samples && find . -name "*.go" -exec go build {} \; && popd + - go test -bench=. -v ./... | grep -v 'no test files' ; test ${PIPESTATUS[0]} -eq 0 + - cd samples; find . -name "*.go" -print0 | xargs -0 -n1 go build