mirror of
https://github.com/rancher/os.git
synced 2025-09-02 07:15:41 +00:00
CI scripts
This commit is contained in:
@@ -28,6 +28,7 @@ generate_images()
|
||||
}
|
||||
|
||||
run ./scripts/bootstrap
|
||||
run ./scripts/test
|
||||
run --assets ./scripts/build-common ./scripts/download
|
||||
run --assets ./scripts/dockerimages --assets ./scripts/build-images
|
||||
finish
|
||||
|
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