Skip to content

Commit 148e380

Browse files
committed
Merge branch 'trunk' into fix/site-creation-timezone
2 parents 6e6ff5e + 54ebfd8 commit 148e380

File tree

66 files changed

+1636
-638
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+1636
-638
lines changed

.buildkite/commands/build-for-testing.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ echo "--- :rubygems: Fixing Ruby Setup"
55
gem install bundler
66

77
echo "--- :rubygems: Setting up Gems"
8-
restore_cache "$(hash_file .ruby-version)-$(hash_file Gemfile.lock)"
98
install_gems
109

1110
echo "--- :cocoapods: Setting up Pods"
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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 "--- :rubygems: Setting up Gems"
8+
install_gems
9+
10+
echo "--- :cocoapods: Setting up Pods"
11+
install_cocoapods
12+
13+
echo "--- :closed_lock_with_key: Installing Secrets"
14+
bundle exec fastlane run configure_apply
15+
16+
echo "--- :hammer_and_wrench: Building"
17+
bundle exec fastlane build_and_upload_jetpack_installable_build
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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 "--- :rubygems: Setting up Gems"
8+
install_gems
9+
10+
echo "--- :cocoapods: Setting up Pods"
11+
install_cocoapods
12+
13+
echo "--- :closed_lock_with_key: Installing Secrets"
14+
bundle exec fastlane run configure_apply
15+
16+
echo "--- :hammer_and_wrench: Building"
17+
bundle exec fastlane build_and_upload_installable_build

.buildkite/pipeline.yml

Lines changed: 41 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,51 @@ common_params:
1212

1313
# This is the default pipeline – it will build and test the app
1414
steps:
15+
16+
#################
17+
# Create Installable Builds for WP and JP
18+
#################
19+
- label: "🛠 WordPress Installable Build"
20+
command: ".buildkite/commands/installable-build-wordpress.sh"
21+
env: *common_env
22+
plugins: *common_plugins
23+
if: build.pull_request.id != null
24+
notify:
25+
- github_commit_status:
26+
context: "WordPress Installable Build"
27+
28+
- label: "🛠 Jetpack Installable Build"
29+
command: ".buildkite/commands/installable-build-jetpack.sh"
30+
env: *common_env
31+
plugins: *common_plugins
32+
if: build.pull_request.id != null
33+
notify:
34+
- github_commit_status:
35+
context: "Jetpack Installable Build"
36+
1537
#################
1638
# Build the app
1739
#################
18-
- label: ":pipeline: Build"
40+
- label: "🛠 Build for Testing"
1941
key: "build"
2042
command: ".buildkite/commands/build-for-testing.sh"
2143
env: *common_env
2244
plugins: *common_plugins
45+
notify:
46+
- github_commit_status:
47+
context: "Build for Testing"
2348

2449
#################
2550
# Run Unit Tests
2651
#################
27-
- label: "🧪 Unit Tests"
52+
- label: "🔬 Unit Tests"
2853
command: ".buildkite/commands/run-unit-tests.sh"
2954
depends_on: "build"
3055
env: *common_env
3156
plugins: *common_plugins
57+
notify:
58+
- github_commit_status:
59+
context: "Unit Tests"
3260

3361
#################
3462
# Lint Translations
@@ -40,23 +68,31 @@ steps:
4068
image: "public.ecr.aws/automattic/glotpress-validator:1.0.0"
4169
agents:
4270
queue: "default"
71+
notify:
72+
- github_commit_status:
73+
context: "Lint Translations"
4374

4475
#################
4576
# UI Tests
4677
#################
47-
- label: "🧪 UI Tests (iPhone)"
78+
- label: "🔬 UI Tests (iPhone)"
4879
command: .buildkite/commands/run-ui-tests.sh WordPressUITests 'iPhone 13' 15.0
4980
depends_on: "build"
5081
env: *common_env
5182
plugins: *common_plugins
5283
artifact_paths:
5384
- "build/results/"
85+
notify:
86+
- github_commit_status:
87+
context: "UI Tests (iPhone)"
5488

55-
56-
- label: "🧪 UI Tests (iPad)"
89+
- label: "🔬 UI Tests (iPad)"
5790
command: .buildkite/commands/run-ui-tests.sh WordPressUITests "iPad Air (4th generation)" 15.0
5891
depends_on: "build"
5992
env: *common_env
6093
plugins: *common_plugins
6194
artifact_paths:
6295
- "build/results/"
96+
notify:
97+
- github_commit_status:
98+
context: "UI Tests (iPad)"

.circleci/config.yml

Lines changed: 0 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -150,31 +150,6 @@ jobs:
150150
include_job_number_field: false
151151
include_project_field: false
152152
failure_message: '${SLACK_FAILURE_MESSAGE}'
153-
WordPress Installable Build:
154-
executor:
155-
name: ios/default
156-
<<: *xcode_version
157-
steps:
158-
- fix-image
159-
- git/shallow-checkout
160-
- ios/install-dependencies:
161-
bundle-install: true
162-
pod-install: true
163-
cache-prefix: cache-prefix-{{ checksum ".circleci/cache-version" }}
164-
- run:
165-
name: Copy Secrets
166-
command: bundle exec fastlane run configure_apply
167-
- run:
168-
name: Build
169-
command: "bundle exec fastlane build_and_upload_installable_build build_number:$CIRCLE_BUILD_NUM"
170-
- run:
171-
name: Prepare Artifacts
172-
command: |
173-
mkdir -p Artifacts
174-
mv "fastlane/comment.json" "Artifacts/comment.json"
175-
- store_artifacts:
176-
path: Artifacts
177-
destination: Artifacts
178153
Release Build:
179154
executor:
180155
name: ios/default
@@ -233,36 +208,6 @@ jobs:
233208
webhook: '${SLACK_BUILD_WEBHOOK}'
234209
failure_message: '${SLACK_FAILURE_MESSAGE}'
235210
success_message: '${SLACK_SUCCESS_MESSAGE}'
236-
Jetpack Installable Build:
237-
executor:
238-
name: ios/default
239-
<<: *xcode_version
240-
environment:
241-
HOMEBREW_NO_AUTO_UPDATE: 1
242-
steps:
243-
- fix-image
244-
- git/shallow-checkout
245-
- ios/install-dependencies:
246-
bundle-install: true
247-
pod-install: true
248-
cache-prefix: cache-prefix-{{ checksum ".circleci/cache-version" }}
249-
- run:
250-
name: Copy Secrets
251-
command: bundle exec fastlane run configure_apply
252-
- run:
253-
name: Install other tools
254-
command: |
255-
brew update # Update homebrew to temporarily fix a bintray issue
256-
brew install imagemagick
257-
brew install ghostscript
258-
curl -sL https://sentry.io/get-cli/ | bash
259-
- run:
260-
name: Build
261-
command: bundle exec fastlane build_and_upload_jetpack_installable_build
262-
no_output_timeout: 60m
263-
- store_artifacts:
264-
path: Artifacts
265-
destination: Artifacts
266211
Build Jetpack:
267212
executor:
268213
name: ios/default
@@ -345,45 +290,9 @@ workflows:
345290
name: UI Tests (iPad)
346291
<<: *ipad_test_device
347292
requires: [ "Optional Tests" ]
348-
Installable Build:
349-
when:
350-
and:
351-
- not: << pipeline.parameters.beta_build >>
352-
- not: << pipeline.parameters.release_build >>
353-
jobs:
354-
- Approve WordPress:
355-
type: approval
356-
filters:
357-
branches:
358-
ignore: /pull\/[0-9]+/
359-
- WordPress Installable Build:
360-
requires: [Approve WordPress]
361-
filters:
362-
branches:
363-
ignore: /pull\/[0-9]+/
364-
- Approve Jetpack:
365-
type: approval
366-
filters:
367-
branches:
368-
ignore: /pull\/[0-9]+/
369-
- Jetpack Installable Build:
370-
requires: [Approve Jetpack]
371-
filters:
372-
branches:
373-
ignore: /pull\/[0-9]+/
374293

375294
Release Build:
376295
when:
377296
or: [ << pipeline.parameters.beta_build >>, << pipeline.parameters.release_build >> ]
378297
jobs:
379298
- Release Build
380-
Jetpack Nightly:
381-
triggers:
382-
- schedule:
383-
cron: "0 0 * * *"
384-
filters:
385-
branches:
386-
only:
387-
- trunk
388-
jobs:
389-
- Jetpack Installable Build

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
source 'https://rubygems.org'
22

33
gem 'rake'
4-
gem 'cocoapods', '~> 1.10'
4+
gem 'cocoapods', '~> 1.11'
55
gem 'xcpretty-travis-formatter'
66
gem 'octokit', "~> 4.0"
77
gem 'fastlane', "~> 2.174"

0 commit comments

Comments
 (0)