Skip to content

Commit

Permalink
Add tests to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
carlpett committed Jul 18, 2018
1 parent d6cbeb1 commit 6a755b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ jobs:
steps:
- checkout
- run: make build
- run: make test
- store_artifacts:
path: bzfttr53rdutil
destination: bzfttr53rdutil
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit 6a755b9

Please sign in to comment.