Skip to content

Commit

Permalink
[ios][ci] Control simulator releases with circle-run-pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
nicknovitski committed May 14, 2020
1 parent 7ae6809 commit 89550ea
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ parameters:
release_apk:
type: boolean
default: false
release_simulator:
type: boolean
default: false

orbs:
job-status-change: expo/job-status-change@1.0.11
Expand Down Expand Up @@ -299,18 +302,15 @@ workflows:
# requires:
# - test_suite_publish
- android_unit_tests
- client_ios:
filters: # run for ALL branches, and ios-simulator-v* tags
tags:
only: /^ios-simulator-v*/
- client_ios

release_simulator:
when: << pipeline.parameters.release_simulator >>
jobs:
- client_ios
- client_ios_simulator_release:
requires:
- client_ios
filters: # run for NO branches, and ios-simulator-v* tags
branches:
ignore: /.*/
tags:
only: /^ios-simulator-v*/

release_google:
when: << pipeline.parameters.release_google >>
Expand Down
3 changes: 3 additions & 0 deletions bin/circle-run-pipeline
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ OptionParser.new do |parser|
parser.on('-k', '--apk', 'Run android apk release build job') do
options[:body]['parameters']['release_apk'] = true
end
parser.on('-s', '--simulator', 'Run simulator release build job') do
options[:body]['parameters']['release_simulator'] = true
end
end.parse!

unless options[:body]['tag']
Expand Down

0 comments on commit 89550ea

Please sign in to comment.