Files
external-dns/scripts/test
T
Alena Prokharchyk a44f694e02 Packaging
2015-10-15 14:07:13 -07:00

24 lines
326 B
Bash
Executable File

#!/bin/bash
set -e
cd $(dirname $0)/..
. ./scripts/common_functions
set_project_vars
go test ./...
result=$(find . -name "*.go" | grep -v ./Godeps | xargs gofmt -l)
if [ -n "$result" ]; then
echo "${#result[@]} files failed gofmt check:"
fi
for i in $result; do
echo $i
done
[ -n "$result" ] && exit 1
echo OK