Skip to content

Commit 4ea8d5c

Browse files
committed
Precheckin now installs if tests pass
1 parent eeb1644 commit 4ea8d5c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

precheckin.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@ golint
55
go test
66

77
# acceptance test
8-
X=$(go run yaml.go sample.yaml b.c)
8+
go build
9+
X=$(./yaml sample.yaml b.c)
910

1011
if [ $X != 2 ]
1112
then
1213
echo "Failed acceptance test: expected 2 but was $X"
14+
exit 1
1315
fi
16+
17+
go install

0 commit comments

Comments
 (0)