1
0
mirror of https://github.com/rancher/os.git synced 2025-08-31 14:23:11 +00:00

CI scripts

This commit is contained in:
Darren Shepherd
2015-02-17 17:01:03 -07:00
parent d26cf6485c
commit fe5cef0ba6
3 changed files with 17 additions and 0 deletions

3
.drone.yml Normal file
View File

@@ -0,0 +1,3 @@
image: rancher/dind:v0.1.0
script:
- ./scripts/ci

View File

@@ -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
View 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