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