yq/precheckin.sh
2015-09-28 13:26:02 +10:00

14 lines
175 B
Bash
Executable File

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