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
| desc "Publish jira release" | |
| lane :publish_jira_release do | |
| Actions.sh("git remote set-url origin [email protected]:your_app_git_url") | |
| git_checkout(remote_branch: ENV['MASTER_BRANCH']) | |
| git_pull | |
| version_number = ENV['MPG_VERSION_NUMBER'].to_s.empty? ? get_version_number : ENV['MPG_VERSION_NUMBER'] | |
| publish_jira_version_release(version: version_number) | |
| end | |
| desc "Closes tickets and publish a \"Jira\" release" |
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
| publish-jira-release: | |
| only: | |
| refs: | |
| - develop | |
| needs: [submit-appstore] | |
| stage: publish-artifacts | |
| tags: [osx] | |
| allow_failure: false | |
| script: | |
| - bundle exec fastlane publish_jira_release |
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
| deploy-testflight: | |
| only: | |
| refs: | |
| - develop | |
| stage: deploy-testflight | |
| tags: [osx] | |
| script: | |
| - bundle exec fastlane testflight_beta |
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
| desc "Submits a new beta build to \"Apple TestFlight\"" | |
| lane :testflight_beta do | |
| build(profile_type: "appstore", scheme: "TestFlight", app_identifier: "your_app_identifier") | |
| pilot(skip_waiting_for_build_processing: true) | |
| 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
| deploy-testflight-pr: | |
| only: | |
| - external_pull_requests | |
| stage: deploy-testflight-pr | |
| needs: [ui-regression] | |
| stage: deploy-testflight-pr | |
| tags: [osx] | |
| when: manual | |
| script: | |
| - bundle exec fastlane testflight_beta |
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
| desc "Runs all the regression UI Tests" | |
| lane :regression do | |
| scan(scheme: "UAT Regression", skip_build: true) | |
| 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
| desc "Runs pull request workflow \"Open a pull request\"" | |
| lane :pull_request do | |
| scan(scheme: "Pull Request", skip_build: true) | |
| 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
| unit-tests: | |
| only: | |
| - external_pull_requests | |
| stage: unit-tests | |
| tags: [osx] | |
| script: | |
| - bundle exec fastlane pull_request | |
| artifacts: | |
| when: always | |
| paths: |
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
| desc "Create and checkout git branch for a JIRA ticket" | |
| lane :checkout do |options| | |
| ticket = options[:ticket] | |
| if !ticket | |
| ticket = prompt(text: "JIRA ticket key e.g. AMI-XYZ: ") | |
| end | |
| checkout_branch_for_jira_issue(key: ticket) | |
| 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
| desc "Merges develop into your feature branch \"Pre-push git hook\"" | |
| lane :merge_develop_if_needed do | |
| current_branch = Actions.sh("git rev-parse --abbrev-ref HEAD") | |
| next unless current_branch.start_with?(ENV['JIRA_PROJECT']) | |
| Actions.sh("git fetch && git merge origin/#{ENV['DEVELOP_BRANCH']} --no-edit") | |
| end |