Skip to content

Commit

Permalink
Merge pull request #43 from akamensky/add-sonar-analysis
Browse files Browse the repository at this point in the history
Add sonar analysis
  • Loading branch information
akamensky committed Oct 6, 2019
2 parents 7f345bc + 0692c82 commit 1427fe6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
language: go
sudo: false
addons:
sonarcloud:
organization: "akamensky"
token:
secure: "UHOX/1aKjS292jywXbx4sWBaka1Bw7xJYAKRFo5wcadJMOBWVYmchNc5brAFkxsVpswnxmjnwtcGerjOV2t6Da5xUX3ST/p7REjKSSz5RmZ/Wa88z6g2PYlmoybqLAlgPmaBX+m5ZxGtaPo3joR+pUmjmUS2VF385UQLezuFbweSYZ90acBSr6kOw0xFQtc3UdW2NjUYM2ihmTCxFh0LwirZJnJCu0Zd1NQiaJOnvHp3nD83bU9PLaZbW308Kjl/cfIdEGf6CuzbeEILUoUqN9AAbAYFfr5HM28IPdzWRrp1krpb0P/OAmRMq18tLWx+AYmI2Y+Ud1AmqHZCNH5OqQYFU6XT7mkKT+Lh3ecNdcTKXRwQAiONj5EGHkbqi0q/kxWe/DEZOVJ51NjwHpjkKV1ByuAdWKXgXAwgftkQtw9+xkHrNSMgKonmcRXqcKy24jM9xOmwcbjMgh1dUoieerDv8midOJWVB538Cw6MH7f4j4ku8WC12YcDQElLoQFTuVjcAtYYGlXgVsfeXKi/I2fXwApKX0+O8ublWLgiNF7MljBHpbIffJCMD4APksIk7PwxYZzjdYJr4UgkLOTAyOH83BTVqVCANBQMLNP03UJIrtMzncB6J/b22ydw139GLx6a8tVdH6AtC2Y87CEWcvM/kA3OC9RK39MXP95tJKo="
go:
- "1.11"
- "1.12"
Expand All @@ -10,3 +15,4 @@ before_install:
script:
- go test -v .
- $GOPATH/bin/goveralls -service=travis-ci
- sonar-scanner
12 changes: 12 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
sonar.projectKey=akamensky_argparse
# this is the name and version displayed in the SonarCloud UI.
sonar.projectName=argparse
sonar.projectVersion=1.0

# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
# This property is optional if sonar.modules is set.
sonar.sources=.
sonar.exclusions=examples/**

# Source encoding
sonar.sourceEncoding=UTF-8

0 comments on commit 1427fe6

Please sign in to comment.