mirror of
https://github.com/rancher/os.git
synced 2025-08-31 06:11:12 +00:00
CI scripts
This commit is contained in:
3
.drone.yml
Normal file
3
.drone.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
image: rancher/dind:v0.1.0
|
||||
script:
|
||||
- ./scripts/ci
|
@@ -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