Skip to content

Commit

Permalink
Remove SonarCloud from the project
Browse files Browse the repository at this point in the history
dsa
  • Loading branch information
matux committed Feb 13, 2024
1 parent c2b6a51 commit f071844
Show file tree
Hide file tree
Showing 552 changed files with 50 additions and 42,981 deletions.
109 changes: 45 additions & 64 deletions .github/workflows/masterCI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,11 @@ jobs:
runs-on: macos-latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/checkout@v4

- name: Create DerivedData folder
run: mkdir DerivedData

- name: Create DerivedData/compilation-database folder
working-directory: DerivedData
run: mkdir compilation-database

- name: Build RollbarCommon
working-directory: RollbarCommon
run: swift build -v --build-path ../DerivedData
Expand All @@ -38,63 +32,50 @@ jobs:
working-directory: RollbarAUL
run: swift build -v

- name: SonarCloud RollbarCommon
run:
SonarCloud/build-wrapper-macosx-x86/build-wrapper-macosx-x86 --out-dir DerivedData/compilation-database
xcodebuild
-workspace RollbarSDK.xcworkspace
-scheme RollbarCommon
-derivedDataPath DerivedData
-enableCodeCoverage YES
build
test
CODE_SIGN_IDENTITY="-"
CODE_SIGNING_REQUIRED=NO

- name: SonarCloud RollbarDeploys
run:
SonarCloud/build-wrapper-macosx-x86/build-wrapper-macosx-x86 --out-dir DerivedData/compilation-database
xcodebuild
-workspace RollbarSDK.xcworkspace
-scheme RollbarDeploys
-derivedDataPath DerivedData
-enableCodeCoverage YES
build
test
CODE_SIGN_IDENTITY="-"
CODE_SIGNING_REQUIRED=NO

- name: SonarCloud RollbarNotifier
run:
SonarCloud/build-wrapper-macosx-x86/build-wrapper-macosx-x86 --out-dir DerivedData/compilation-database
xcodebuild
-workspace RollbarSDK.xcworkspace
-scheme RollbarNotifier
-derivedDataPath DerivedData
-enableCodeCoverage YES
build
test
CODE_SIGN_IDENTITY="-"
CODE_SIGNING_REQUIRED=NO
- name: Test RollbarCommon
run: |
xcodebuild \
-workspace RollbarSDK.xcworkspace \
-scheme RollbarCommon \
-derivedDataPath DerivedData \
-enableCodeCoverage YES \
build \
test \
CODE_SIGN_IDENTITY="-" \
CODE_SIGNING_REQUIRED=NO
- name: SonarCloud RollbarAUL
run:
SonarCloud/build-wrapper-macosx-x86/build-wrapper-macosx-x86 --out-dir DerivedData/compilation-database
xcodebuild
-workspace RollbarSDK.xcworkspace
-scheme RollbarAUL
-derivedDataPath DerivedData
-enableCodeCoverage YES
build
test
CODE_SIGN_IDENTITY="-"
CODE_SIGNING_REQUIRED=NO
- name: Test RollbarDeploys
run: |
xcodebuild \
-workspace RollbarSDK.xcworkspace \
-scheme RollbarDeploys \
-derivedDataPath DerivedData \
-enableCodeCoverage YES \
build \
test \
CODE_SIGN_IDENTITY="-" \
CODE_SIGNING_REQUIRED=NO
- name: SonarCloud Test Coverage Conversion
run: bash xccov-to-sonarqube-generic.sh DerivedData/Logs/Test/*.xcresult/ > sonarqube-generic-coverage.xml
- name: Test RollbarNotifier
run: |
xcodebuild \
-workspace RollbarSDK.xcworkspace \
-scheme RollbarNotifier \
-derivedDataPath DerivedData \
-enableCodeCoverage YES \
build \
test \
CODE_SIGN_IDENTITY="-" \
CODE_SIGNING_REQUIRED=NO
- name: Run SonarScanner Analysis
run: SonarCloud/sonar-scanner-4.7.0.2747-macosx/bin/sonar-scanner -X -Dsonar.organization=${{ secrets.SONAR_ORGANIZATION_KEY }} -Dsonar.projectKey=${{ secrets.SONAR_PROJECT_KEY }} -Dsonar.coverageReportPaths=sonarqube-generic-coverage.xml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Test RollbarAUL
run: |
xcodebuild \
-workspace RollbarSDK.xcworkspace \
-scheme RollbarAUL \
-derivedDataPath DerivedData \
-enableCodeCoverage YES \
build \
test \
CODE_SIGN_IDENTITY="-" \
CODE_SIGNING_REQUIRED=NO
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

## Release Notes

### Unreleased
### 3.2.1

- Removed SonarCloud from the project and CI.

### 3.2.0

- Dropped minimum deployable OS requirements to iOS 11, macOS 10.13, tvOS 11, and watchOS 4.

Expand Down
6 changes: 0 additions & 6 deletions RollbarSDK.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
74 changes: 0 additions & 74 deletions SonarCloud/sonar-scanner-4.6.2.2472-macosx/bin/sonar-scanner

This file was deleted.

16 changes: 0 additions & 16 deletions SonarCloud/sonar-scanner-4.6.2.2472-macosx/bin/sonar-scanner-debug

This file was deleted.

This file was deleted.

Binary file not shown.

This file was deleted.

This file was deleted.

Loading

0 comments on commit f071844

Please sign in to comment.