From f76970c4ee181202efdf73a9f200645a1748073f Mon Sep 17 00:00:00 2001 From: Remo Pfister Date: Tue, 16 Apr 2019 21:00:03 +0200 Subject: [PATCH] Setup sonarqube --- .travis.yml | 9 ++++++++- sonar-project.properties | 6 ++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 sonar-project.properties diff --git a/.travis.yml b/.travis.yml index 61c77b4..9396e54 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,8 +6,15 @@ go: env: - GO111MODULE=on +addons: + sonarcloud: + organization: "bazo-blockchain" + script: - go test -v ./... -coverprofile=coverage.out -coverpkg=./... + - sonar-scanner after_success: - - go build \ No newline at end of file + - go build + + diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..9161a3a --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,6 @@ +sonar.projectKey=bazo-blockchain_bazo-vm + +sonar.exclusions=**/*_test.go,**/vendor/** + +sonar.test.exclusions=**/vendor/** +sonar.go.coverage.reportPaths=coverage.out \ No newline at end of file