1
0
mirror of https://github.com/taigrr/yq synced 2025-01-18 04:53:17 -08:00
yq/precheckin.sh
2015-10-06 16:17:28 +11:00

18 lines
198 B
Bash
Executable File

#!/bin/bash
gofmt -w .
golint
go test
# acceptance test
go build
X=$(./yaml r sample.yaml b.c)
if [ $X != 2 ]
then
echo "Failed acceptance test: expected 2 but was $X"
exit 1
fi
go install