Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Add code climate reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
louy committed Apr 16, 2019
1 parent bccd2a0 commit 78cfd66
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
version: 2
jobs:
build:
environment:
CC_TEST_REPORTER_ID: 52729bbe50d1d3f27774761a3ae11ce34b3a14fbbdfdce903f8736eac52f30c5

docker:
# CircleCI Go images available at: https://hub.docker.com/r/circleci/golang/
- image: circleci/golang:1.10
Expand All @@ -21,14 +24,23 @@ jobs:
paths:
- ./vendor

- run:
name: Setup Code Climate test-reporter
command: |
# download test reporter as a static binary
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
- run:
name: Build
command: |
go build -v
- run:
name: Run acceptance tests
command: |
TF_ACC=1 go test -v ./...
./cc-test-reporter before-build
TF_ACC=1 go test -coverprofile c.out -v ./...
./cc-test-reporter after-build --exit-code $?
- store_artifacts:
path: "/go/bin/terraform-provider-uptimerobot"
Expand Down

0 comments on commit 78cfd66

Please sign in to comment.