Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove SonarCloud from the project #341

Merged
merged 2 commits into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
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