mirror of
https://github.com/rancher/os.git
synced 2025-09-13 21:51:33 +00:00
move coreos-cloudinit into config/cloudinit
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
27
config/cloudinit/test
Executable file
27
config/cloudinit/test
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
source ./build
|
||||
|
||||
SRC=$(find . -name '*.go' \
|
||||
-not -path "./vendor/*")
|
||||
|
||||
PKG=$(cd gopath/src/${REPO_PATH}; go list ./... | \
|
||||
grep --invert-match vendor)
|
||||
|
||||
echo "Checking gofix..."
|
||||
go tool fix -diff $SRC
|
||||
|
||||
echo "Checking gofmt..."
|
||||
res=$(gofmt -d -e -s $SRC)
|
||||
echo "${res}"
|
||||
if [ -n "${res}" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Checking govet..."
|
||||
go vet $PKG
|
||||
|
||||
echo "Running tests..."
|
||||
go test -timeout 60s -cover $@ ${PKG} --race
|
||||
|
||||
echo "Success"
|
Reference in New Issue
Block a user