mirror of
https://github.com/rancher/os.git
synced 2025-09-08 18:20:32 +00:00
CI scripts
This commit is contained in:
13
scripts/test
Executable file
13
scripts/test
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
cd $(dirname $0)/..
|
||||
|
||||
result=$(find . -name "*.go" | grep -v ./Godeps | xargs gofmt -s -l)
|
||||
for i in $result; do
|
||||
echo $i
|
||||
done
|
||||
|
||||
[ -n "$result" ] && exit 1
|
||||
|
||||
echo OK
|
Reference in New Issue
Block a user