This file contains hidden or 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
module Fastlane | |
module Actions | |
class PublishCodeCoverageAction < Action | |
COVERAGE_FILE_PATH = 'fastlane/code_coverage/index.html' | |
def self.run(params) | |
UI.message "Generating Slather report" | |
Actions::SlatherAction.run( |
This file contains hidden or 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
module Fastlane | |
module Actions | |
class PublishCodeCoverageAction < Action | |
COVERAGE_FILE_PATH = 'fastlane/code_coverage/index.html' | |
def self.run(params) | |
UI.message "Generating Slather report" | |
Actions::SlatherAction.run( |
This file contains hidden or 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
module Fastlane | |
module Actions | |
class PublishCodeCoverageAction < Action | |
def self.run(params) | |
UI.message "Generating Slather report" | |
Actions::SlatherAction.run( | |
scheme: 'CodeCoverageStatusCheck', | |
proj: 'CodeCoverageStatusCheck.xcodeproj', | |
output_directory: "fastlane/code_coverage", |
This file contains hidden or 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
source "https://rubygems.org" | |
gem "fastlane" | |
gem "slather" |
This file contains hidden or 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
default_platform(:ios) | |
platform :ios do | |
desc "Run tasks when submitting a pull request" | |
lane :tasks_for_pull_request do | |
scan | |
publish_code_coverage | |
end | |
end |
This file contains hidden or 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
default_platform(:ios) | |
platform :ios do | |
desc "Run tasks when submitting a pull request" | |
lane :tasks_for_pull_request do | |
publish_code_coverage | |
end | |
end |
This file contains hidden or 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
module Fastlane | |
module Actions | |
class PublishCodeCoverageAction < Action | |
def self.run(params) | |
UI.message "Generating Slather report" | |
UI.message "Obtaining coverage number" | |
UI.message "Getting commit SHA" | |
UI.message "Publishing coverage on Github" | |
end |
This file contains hidden or 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
module Fastlane | |
module Actions | |
module SharedValues | |
PUBLISH_CODE_COVERAGE_CUSTOM_VALUE = :PUBLISH_CODE_COVERAGE_CUSTOM_VALUE | |
end | |
class PublishCodeCoverageAction < Action | |
def self.run(params) | |
# fastlane will take care of reading in the parameter and fetching the environment variable: | |
UI.message "Parameter API Token: #{params[:api_token]}" |
This file contains hidden or 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
default_platform(:ios) | |
platform :ios do | |
desc "Run tasks when submitting a pull request" | |
lane :tasks_for_pull_request do | |
UI.message "Hello Fastlane world!" | |
end | |
end |
This file contains hidden or 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 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 |