Skip to content

Commit bb3cfc5

Browse files
committed
Parallelize WordPress Internal Release Builds
1 parent e8e2aee commit bb3cfc5

File tree

4 files changed

+93
-9
lines changed

4 files changed

+93
-9
lines changed

.buildkite/commands/installable-build-wordpress.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ echo "--- :closed_lock_with_key: Installing Secrets"
1414
bundle exec fastlane run configure_apply
1515

1616
echo "--- :hammer_and_wrench: Building"
17-
bundle exec fastlane build_and_upload_installable_build
17+
bundle exec fastlane build_and_upload_app_store_connect
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash -eu
2+
3+
# FIXIT-13.1: Temporary fix until we're on the Xcode 13.1 VM
4+
echo "--- :rubygems: Fixing Ruby Setup"
5+
gem install bundler
6+
7+
echo "--- :arrow_down: Installing Release Dependencies"
8+
brew update # Update homebrew to temporarily fix a bintray issue
9+
brew install imagemagick
10+
brew install ghostscript
11+
12+
echo "--- :rubygems: Setting up Gems"
13+
install_gems
14+
15+
echo "--- :cocoapods: Setting up Pods"
16+
install_cocoapods
17+
18+
echo "--- :closed_lock_with_key: Installing Secrets"
19+
bundle exec fastlane run configure_apply
20+
21+
echo "--- :hammer_and_wrench: Building"
22+
bundle exec fastlane build_and_upload_app_center skip_confirm:true

.buildkite/release-builds.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,19 @@ common_params:
1717

1818
steps:
1919

20-
- label: "🛠 WordPress Release Build"
20+
- label: "🛠 WordPress Release Build (App Store Connect)"
2121
command: ".buildkite/commands/release-build-wordpress.sh"
2222
env: *common_env
2323
plugins: *common_plugins
2424
notify:
2525
- slack: "#build-and-ship"
2626

27+
- label: "🛠 WordPress Release Build (App Center)"
28+
command: ".buildkite/commands/release-build-wordpress-internal.sh"
29+
env: *common_env
30+
plugins: *common_plugins
31+
notify:
32+
- slack: "#build-and-ship"
2733

2834
- label: "🛠 Jetpack Release Build"
2935
command: ".buildkite/commands/release-build-jetpack.sh"

fastlane/Fastfile

Lines changed: 63 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ platform :ios do
518518
end
519519

520520
#####################################################################################
521-
# build_and_upload_release
521+
# build_and_upload_release [deprecated]
522522
# -----------------------------------------------------------------------------------
523523
# This lane builds the app and uploads it for both internal and external distribution
524524
# -----------------------------------------------------------------------------------
@@ -534,14 +534,70 @@ platform :ios do
534534
#####################################################################################
535535
desc 'Builds and uploads for distribution'
536536
lane :build_and_upload_release do |options|
537-
ios_build_prechecks(skip_confirm: options[:skip_confirm],
538-
internal: options[:beta_release],
539-
external: true)
537+
build_and_upload_app_center(options) if options[:beta_release]
538+
build_and_upload_app_store_connect(options)
539+
end
540+
541+
#####################################################################################
542+
# build_and_upload_app_store_connect
543+
# -----------------------------------------------------------------------------------
544+
# This lane builds the app and uploads it for App Store Connect
545+
# -----------------------------------------------------------------------------------
546+
# Usage:
547+
# bundle exec fastlane build_and_upload_app_store_connect [skip_confirm:<skip confirm>]
548+
# [create_gh_release:<create release on GH>] [beta_release:<is a beta release>]
549+
#
550+
# Example:
551+
# bundle exec fastlane build_and_upload_app_store_connect
552+
# bundle exec fastlane build_and_upload_app_store_connect skip_confirm:true
553+
# bundle exec fastlane build_and_upload_app_store_connect create_gh_release:true
554+
# bundle exec fastlane build_and_upload_app_store_connect beta_release:true
555+
#####################################################################################
556+
desc 'Builds and uploads for distribution to App Store Connect'
557+
lane :build_and_upload_app_store_connect do |options|
558+
ios_build_prechecks(
559+
skip_confirm: options[:skip_confirm],
560+
internal: options[:beta_release],
561+
external: true
562+
)
563+
540564
ios_build_preflight
541565

542-
build_and_upload_internal(skip_prechecks: true, skip_confirm: options[:skip_confirm]) if options[:beta_release]
543-
build_and_upload_itc(skip_prechecks: true, skip_confirm: options[:skip_confirm],
544-
beta_release: options[:beta_release], create_release: options[:create_gh_release])
566+
build_and_upload_itc(
567+
skip_prechecks: true,
568+
skip_confirm: options[:skip_confirm],
569+
beta_release: options[:beta_release],
570+
create_release: options[:create_gh_release]
571+
)
572+
573+
end
574+
575+
#####################################################################################
576+
# build_and_upload_app_center
577+
# -----------------------------------------------------------------------------------
578+
# This lane builds the app and uploads it for App Center
579+
# -----------------------------------------------------------------------------------
580+
# Usage:
581+
# bundle exec fastlane build_and_upload_app_center [skip_confirm:<skip confirm>]
582+
#
583+
# Example:
584+
# bundle exec fastlane build_and_upload_app_center
585+
# bundle exec fastlane build_and_upload_app_center skip_confirm:true
586+
#####################################################################################
587+
desc 'Builds and uploads for distribution to App Center'
588+
lane :build_and_upload_app_center do |options|
589+
ios_build_prechecks(
590+
skip_confirm: options[:skip_confirm],
591+
internal: true,
592+
external: true
593+
)
594+
595+
ios_build_preflight
596+
597+
build_and_upload_internal(
598+
skip_prechecks: true,
599+
skip_confirm: options[:skip_confirm]
600+
)
545601
end
546602

547603
#####################################################################################

0 commit comments

Comments
 (0)