diff --git a/.circleci/config.yml b/.circleci/config.yml index d696a1d..5b9621a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,6 +7,7 @@ jobs: steps: - checkout - run: make build + - run: make test - store_artifacts: path: bzfttr53rdutil destination: bzfttr53rdutil diff --git a/Makefile b/Makefile index 0db2b30..36630a6 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ VERSION = $(shell git describe --always --tags --dirty=-dirty) REVISION = $(shell git rev-parse --short=8 HEAD) BRANCH = $(shell git rev-parse --abbrev-ref HEAD) -all: build +all: build test build: @echo ">> building bzfttr53rdutil" @@ -13,6 +13,9 @@ build: -X main.BuildUser=$(USER)@$(HOSTNAME) \ -X main.BuildDate=$(shell date +%Y-%m-%dT%T%z)" +test: + @go test -v -cover + release: build bin/github-release @echo ">> uploading release ${VERSION}" @./bin/github-release upload -t ${VERSION} -n bzfttr53rdutil -f bzfttr53rdutil