Precheckin now installs if tests pass

This commit is contained in:
Mike Farah 2015-09-29 11:05:20 +10:00
parent eeb16443d4
commit 4ea8d5c4ee

View File

@ -5,9 +5,13 @@ golint
go test go test
# acceptance test # acceptance test
X=$(go run yaml.go sample.yaml b.c) go build
X=$(./yaml sample.yaml b.c)
if [ $X != 2 ] if [ $X != 2 ]
then then
echo "Failed acceptance test: expected 2 but was $X" echo "Failed acceptance test: expected 2 but was $X"
exit 1
fi fi
go install