Skip to content

Commit

Permalink
Try to get sonarcloud working with test coverage and lint results
Browse files Browse the repository at this point in the history
  • Loading branch information
aphistic committed Sep 2, 2020
1 parent 7a7016e commit 634f658
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
10 changes: 0 additions & 10 deletions .codeclimate.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ sonar.exclusions=**/*_test.go

sonar.tests=.
sonar.test.inclusions=**/*_test.go
sonar.go.tests.reportPaths=report.json
sonar.go.coverage.reportPaths=coverage.out
sonar.go.golangci-lint.reportPaths=golangci-lint.out
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ addons:
secure: RGL5wHwkPzmLL5deETaxfFmljem1Odd+ksfqvWDFgCewuATBWZcJXI/AQUkoeetwevqa3Et3s5kYV7a+LoYqIUgD3uYmb3i/WPmhfhcHmjPw+/5Tq5TuFcobT7a388dLh48+9L9hOuuHLF83r+wI9iTWprdiG8TCq9gB1WuDR/cOft5KKhjVS7uBkv9ovOfYho1bNR4RPcoLd7cNZK8YDh+48H+yNcLRH+8YjpRSJAcA/7yfc5Pgms7ndG3TyVgnRMoXawo0KysEzIchxNQfIh0gJ4PajYIe9QQYTeHXjfP9o7vZKAaIuKiwGMFjb150CQJGhnslIRsty6yaxipKC1i8C3p3rnXVGslIMkdbAv1/KJqvoH8HOYwMsKojjKAzdBo9ow+P/FoLdPdclv1jOkEJZr5F9SaXRP5X1VkWwTxxMZ5ko25+ZXeRsubTDpuio2nGliW0GKZRjdidSi+h73dLnpp9S5VGPZ5pvAXcSqV8XIYQEJne3RlhmkMHVvswPpBshdQ+KpED2e6Dru4Ql5ltauOd7xikoeLvVIiadeVVJByqkQ2XG0kkGART7xi8tmSbDQ9mYf2uEOvJZa/l9sSXg2GrHR5OZgLeRoNxK3/HVzgCRAoyVBfmy7ClSp5UWo6bTzZtuY2Zs0Qr2P8WQHpypckECWp02Sr0ebYfcnc=

script:
# the following command line builds the project, runs the tests with coverage and then execute the SonarCloud analysis
- go test -coverprofile=coverage.out -covermode=count -json ./... > report.json
- golangci-lint run --verbose --no-config --out-format checkstyle ./... > golangci-lint.out
- sonar-scanner -Dproject.settings=.sonar-project.properties

0 comments on commit 634f658

Please sign in to comment.