1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 23:04:41 +00:00

Add unit tests to CI

This commit is contained in:
Josh Curl
2016-04-13 11:23:21 -07:00
parent b52663ee5f
commit adb8ad3e3a
2 changed files with 9 additions and 0 deletions

8
scripts/unit-test Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
set -e
cd $(dirname $0)/..
PACKAGES="$(find -name '*.go' | xargs -I{} dirname {} | cut -f2 -d/ | sort -u | grep -Ev '(^\.$|.git|.trash-cache|vendor)' | sed -e 's!^!./!' -e 's!$!/...!')"
go test -race -cover -tags=test $PACKAGES