mirror of
https://github.com/mikefarah/yq.git
synced 2024-12-19 20:19:04 +00:00
18 lines
196 B
Bash
Executable File
18 lines
196 B
Bash
Executable File
#!/bin/bash
|
|
|
|
gofmt -w .
|
|
golint
|
|
go test
|
|
|
|
# acceptance test
|
|
go build
|
|
X=$(./yaml sample.yaml b.c)
|
|
|
|
if [ $X != 2 ]
|
|
then
|
|
echo "Failed acceptance test: expected 2 but was $X"
|
|
exit 1
|
|
fi
|
|
|
|
go install
|