Skip to content

Commit b37182d

Browse files
committed
Use SonarCloud
1 parent 54b1b0c commit b37182d

2 files changed

Lines changed: 30 additions & 4 deletions

File tree

.travis.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,24 @@ language: objective-c
44
xcode_project: STSecurity.xcodeproj
55
xcode_sdk: iphonesimulator
66
xcode_scheme: STSecurity
7+
addons:
8+
sonarcloud:
9+
organization: "cysp"
10+
token:
11+
secure: "nEmZnpgXh5Ba9tUCWLcyACYXQKG8XUEdWTMhFN4zJ8/gUCTdshYySWN6gd6sDLdfkCBNohrN1Xn0710jlNJWUiDBuz3hr2RnhAKOqwXbActW63BWRj9h1v8/AI2k7NkBL+/85l7+MbdP3mT43JOyNBq3GYZy/H132pR5phC62TA="
712
env:
13+
global:
14+
- secure: XqWY+wX6j83BGKYI4LFDFHPBv2R2d7MhECwk1y+CRC1y3EfYji8TTTIWR2VQZCgZwRvf8YNva5zWk6ET4BramXdij/zV+guDC9cc6c/ws/ekt4Eiy6UpD5ZoxLPtHSW1+92xa46/udCOfrTh8ODAUv4IDzz74/CYFC6+FqGYjGE=
15+
jobs:
816
- XCODE_DESTINATION="platform=iOS Simulator,name=iPhone 8,OS=11.4"
917
branches:
10-
only:
11-
- master
18+
only:
19+
- master
1220
before_script:
13-
- gem install xcpretty
14-
script: set -o pipefail && xcodebuild test -project "${TRAVIS_XCODE_PROJECT}" -scheme "${TRAVIS_XCODE_SCHEME}" -sdk "${TRAVIS_XCODE_SDK}" -destination "${XCODE_DESTINATION}" | xcpretty
21+
- gem install xcpretty
22+
- brew install sonar-scanner
23+
script:
24+
- set -o pipefail && xcodebuild test -project "${TRAVIS_XCODE_PROJECT}" -scheme
25+
"${TRAVIS_XCODE_SCHEME}" -sdk "${TRAVIS_XCODE_SDK}" -destination "${XCODE_DESTINATION}"
26+
| xcpretty
27+
- sonar-scanner

sonar-project.properties

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
sonar.projectKey=cysp_STSecurity
2+
sonar.organization=cysp
3+
4+
# this is the name and version displayed in the SonarCloud UI.
5+
sonar.projectName=STSecurity
6+
sonar.projectVersion=1.0
7+
8+
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
9+
# This property is optional if sonar.modules is set.
10+
sonar.sources=STSecurity
11+
12+
# Encoding of the source code. Default is default system encoding
13+
#sonar.sourceEncoding=UTF-8

0 commit comments

Comments
 (0)