File tree Expand file tree Collapse file tree 2 files changed +31
-4
lines changed
Expand file tree Collapse file tree 2 files changed +31
-4
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,16 @@ xcode_project: AGString.xcodeproj
1414xcode_scheme :
1515 - AGString
1616
17+ dist : trusty
18+
19+ addons :
20+ sonarcloud :
21+ organization : " swiftalgorithmclub"
22+ token :
23+ secure : $SONAR_TOKEN # encrypted value of your token
1724
1825env :
1926 - CACHE_NAME=iOS PLATFORM=iOS
20- - CACHE_NAME=macOS PLATFORM=macOS
21- - CACHE_NAME=tvOS PLATFORM=tvOS
22- - CACHE_NAME=watchOS PLATFORM=watchOS
2327
2428install :
2529- pip install codecov
@@ -68,13 +72,15 @@ script:
6872 fi
6973
7074 - xcodebuild clean -project "$TRAVIS_XCODE_PROJECT" -scheme "$SCHEME" | xcpretty
71-
75+ - sonar-scanner
76+
7277 # # Run `pod lib lint` if specified
7378 # - if [ $POD_LINT == "YES" ] && [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
7479 # pod repo update > /dev/null;
7580 # travis_wait 60 pod lib lint --allow-warnings;
7681 # fi
7782
83+
7884after_success :
7985 - codecov
8086
Original file line number Diff line number Diff line change 1+ sonar.projectKey =SwiftAlgorithmClub_AGString
2+ sonar.organization =swiftalgorithmclub
3+
4+ # this is the name and version displayed in the SonarCloud UI.
5+ sonar.projectName =AGString
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 =.
11+
12+
13+ # Encoding of the source code. Default is default system encoding
14+ # sonar.sourceEncoding=UTF-8
15+
16+ # The only way to get an accurate analysis of C/C++/Objective-C files is by using the SonarSource build-wrapper
17+ # and setting the property "sonar.cfamily.build-wrapper-output", but it was not specified.
18+ # If you don't want to analyze C/C++/Objective-C files, then prevent them from being analyzed by setting the following properties:
19+ sonar.c.file.suffixes =-
20+ sonar.cpp.file.suffixes =-
21+ sonar.objc.file.suffixes =-
You can’t perform that action at this time.
0 commit comments