diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2018-07-17 00:51:55 -0400 |
|---|---|---|
| committer | Dave Henderson <dhenderson@gmail.com> | 2018-07-17 00:51:55 -0400 |
| commit | fc09081cc2dc7e743ba8a9c060f81f3b801bcb2b (patch) | |
| tree | 9700b6a9dfa1ac6a9ae5156d6e950ce5560b5957 | |
| parent | 9c1805e66e6ffaf34b8253ed474ac55b0fe47adf (diff) | |
Setting up code coverage with codeclimate
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | circle.yml | 2 |
3 files changed, 4 insertions, 1 deletions
@@ -4,3 +4,4 @@ report.xml ./gomplate *.cid *.iid +*.out @@ -80,7 +80,7 @@ $(PREFIX)/bin/$(PKG_NAME)$(call extension,$(GOOS)): $(PREFIX)/bin/$(PKG_NAME)_$( build: $(PREFIX)/bin/$(PKG_NAME)$(call extension,$(GOOS)) test: - $(GO) test -v -race ./... + $(GO) test -v -race -coverprofile=c.out ./... integration: ./bin/gomplate $(GO) test -v -tags=integration \ @@ -9,11 +9,13 @@ jobs: steps: - checkout - run: make build + - run: cc-test-reporter before-build - run: name: make test command: | trap "go-junit-report < $CIRCLE_TEST_REPORTS/go-test.out > $CIRCLE_TEST_REPORTS/report.xml" EXIT make test | tee $CIRCLE_TEST_REPORTS/go-test.out + cc-test-reporter after-build --exit-code $? - run: make lint - run: make integration - store_artifacts: |
