From fbfa48f0fcd2b537c98daa79352a0e224a480937 Mon Sep 17 00:00:00 2001 From: Anthony HAMON Date: Sat, 18 Aug 2018 09:27:47 +0200 Subject: update circleci * define release worflow when a tag is created * add dep install * run tests with coverage * add goreleaser --- test.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 test.sh (limited to 'test.sh') diff --git a/test.sh b/test.sh new file mode 100755 index 000000000..a92243cf7 --- /dev/null +++ b/test.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +set -e +echo "" > coverage.txt + +for d in $( find ./* -maxdepth 10 ! -path "./vendor*" ! -path "./.git*" -type d); do + if ls $d/*.go &> /dev/null; then + go test -v -race -coverprofile=profile.out -covermode=atomic $d + if [ -f profile.out ]; then + cat profile.out >> coverage.txt + rm profile.out + fi + fi +done -- cgit v1.2.3