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

Add code climate reporter #25

Merged
merged 2 commits into from
Apr 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@
*.tfvars

*.log

c.out