Skip to content
This repository was archived by the owner on Nov 29, 2022. It is now read-only.

Commit 08604b1

Browse files
committed
chore: add sonarcloud tests
1 parent ad8dc39 commit 08604b1

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.travis.yml

+6
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@ env:
99
before_install:
1010
- go get -t -v ./...
1111

12+
addons:
13+
sonarcloud:
14+
organization: "thazelart"
15+
token: $SONAR_TOKEN
16+
1217
script:
1318
- ./go.test.sh
19+
- sonar-scanner
1420

1521
after_success:
1622
- bash <(curl -s https://codecov.io/bash)

sonar-project.properties

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
sonar.projectKey=terraform-validator
2+
sonar.organization=thazelart
3+
4+
sonar.sources=.
5+
sonar.exclusions=**/*_test.go,**/vendor/**,**/testdata/*
6+
7+
sonar.tests=.
8+
sonar.test.inclusions=**/*_test.go
9+
sonar.test.exclusions=**/vendor/**
10+
11+
sonar.cpd=.
12+
sonar.cpd.exclusions=**/*_test.go

0 commit comments

Comments
 (0)