yq/ci.sh

15 lines
195 B
Bash
Raw Normal View History

2017-02-12 20:28:48 +00:00
#!/bin/bash
set -e
2017-02-12 20:28:48 +00:00
go test
go build
# acceptance test
X=$(./yaml w sample.yaml b.c 3 | ./yaml r - b.c)
if [ $X != 3 ]
then
echo "Failed acceptance test: expected 2 but was $X"
exit 1
fi