-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MOB-838 Updating Primary build for Code Coverage (#98)
* MOB-838 Updating Primary build for Code Coverage - Removed Sonar Action is Build workflow as it was only avaiable on linux - Updated Primary workflow to generate code coverage and update report to Sonarcloud - Added Fastlane to do the sonar scanning. * Update primary.yml Fixed Syntax error in yml file * Updates to code coverage generation * Updates to code coverage generation * Updates to code coverage generation * Updates to code coverage generation
- Loading branch information
1 parent
32bc9f9
commit 9bf8e69
Showing
5 changed files
with
54 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
source "https://rubygems.org" | ||
|
||
gem "fastlane" | ||
|
||
plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile') | ||
eval_gemfile(plugins_path) if File.exist?(plugins_path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# This file contains the fastlane.tools configuration | ||
# You can find the documentation at https://docs.fastlane.tools | ||
# | ||
# For a list of all available actions, check out | ||
# | ||
# https://docs.fastlane.tools/actions | ||
# | ||
# For a list of all available plugins, check out | ||
# | ||
# https://docs.fastlane.tools/plugins/available-plugins | ||
# | ||
|
||
# Uncomment the line if you want fastlane to automatically update itself | ||
# update_fastlane | ||
|
||
default_platform(:ios) | ||
|
||
platform :ios do | ||
|
||
desc "Run Sonar Scan" | ||
lane :sonar_scan do | ||
|
||
sonar( | ||
project_key: "PaystackHQ_paystack-sdk-ios", | ||
project_version: "1.0", | ||
project_name: "paystack-sdk-ios", | ||
sources_path: File.expand_path("../Sources/"), | ||
sonar_organization: "paystackhq", | ||
sonar_login: ENV["SONAR_TOKEN"], | ||
sonar_url: "https://sonarcloud.io" | ||
) | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
sonar.projectKey=PaystackHQ_paystack-sdk-ios | ||
sonar.organization=paystackhq | ||
sonar.javascript.lcov.reportPaths=./lcov.info | ||
sonar.swift.coverage.reportPaths=coverage.report |