From 4ea8d5c4eed76412ea9b63444d2d955578e359a4 Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Tue, 29 Sep 2015 11:05:20 +1000 Subject: [PATCH] Precheckin now installs if tests pass --- precheckin.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/precheckin.sh b/precheckin.sh index a63a19b..f80f696 100755 --- a/precheckin.sh +++ b/precheckin.sh @@ -5,9 +5,13 @@ golint go test # acceptance test -X=$(go run yaml.go sample.yaml b.c) +go build +X=$(./yaml sample.yaml b.c) if [ $X != 2 ] then echo "Failed acceptance test: expected 2 but was $X" + exit 1 fi + +go install