Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nickatsegment committed Sep 6, 2018
1 parent bfd6876 commit f4bc09b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
version: 2
jobs:
test:
docker:
- image: circleci/golang:1.10
working_directory: /go/src/github.com/segmentio/chamber
steps:
- checkout
- run:
name: Test
command: |
make test
dist:
docker:
- image: circleci/golang:1.10
Expand Down Expand Up @@ -32,8 +43,9 @@ jobs:
workflows:
version: 2
dist-publish:
test-dist-publish:
jobs:
- test
- dist:
# needed to ensure dist happens on tag events
filters:
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
VERSION := $(shell git describe --tags --always --dirty="-dev")
LDFLAGS := -ldflags='-X "main.Version=$(VERSION)"'

test: | govendor
govendor sync
go test -v ./...

all: dist/chamber-$(VERSION)-darwin-amd64 dist/chamber-$(VERSION)-linux-amd64

clean:
Expand Down

0 comments on commit f4bc09b

Please sign in to comment.