yq/precheckin.sh

18 lines
196 B
Bash
Raw Normal View History

2015-09-28 03:26:02 +00:00
#!/bin/bash
gofmt -w .
golint
go test
2015-09-28 03:26:02 +00:00
# acceptance test
2015-09-29 01:05:20 +00:00
go build
X=$(./yaml sample.yaml b.c)
2015-09-28 03:26:02 +00:00
if [ $X != 2 ]
then
echo "Failed acceptance test: expected 2 but was $X"
2015-09-29 01:05:20 +00:00
exit 1
2015-09-28 03:26:02 +00:00
fi
2015-09-29 01:05:20 +00:00
go install