Skip to content

Commit adcbab9

Browse files
committed
Merge branch 'trunk' of github.com:wordpress-mobile/WordPress-iOS into feature/image-block-replace-featured-image-prompt
2 parents 3eb77ce + e56bbde commit adcbab9

File tree

890 files changed

+49099
-20593
lines changed

Some content is hidden

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

890 files changed

+49099
-20593
lines changed

.buildkite/cache-builder.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ common_params:
1313
repo: "wordpress-mobile/wordpress-ios/"
1414
# Common environment values to use with the `env` key.
1515
- &common_env
16-
IMAGE_ID: xcode-12.5.1
16+
IMAGE_ID: xcode-13
1717

1818
steps:
1919

2020
#################
2121
# Build the CocoaPods Base Cache
22-
#
22+
#
2323
# This prevents the base cache from infinite growth caused by storing every
2424
# version of every pod we've ever used.
2525
#################

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/bin/bash -eu
22

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+
37
echo "--- :rubygems: Setting up Gems"
48
restore_cache "$(hash_file .ruby-version)-$(hash_file Gemfile.lock)"
59
install_gems
@@ -12,9 +16,12 @@ cp -v fastlane/env/project.env-example .configure-files/project.env
1216
mkdir -pv ~/.configure/wordpress-ios/secrets
1317
cp -v fastlane/env/project.env-example ~/.configure/wordpress-ios/secrets/project.env
1418

19+
echo "--- Installing Secrets"
20+
bundle exec fastlane run configure_apply
21+
1522
echo "--- :hammer_and_wrench: Building"
1623
bundle exec fastlane build_for_testing
1724

1825
echo "--- :arrow_up: Upload Build Products"
1926
tar -cf build-products.tar DerivedData/Build/Products/
20-
buildkite-agent artifact upload build-products.tar
27+
upload_artifact build-products.tar

.buildkite/commands/run-ui-tests.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,17 @@ IOS_VERSION=$3
77
echo "Running $TEST_NAME on $DEVICE for iOS $IOS_VERSION"
88

99
echo "--- 📦 Downloading Build Artifacts"
10-
buildkite-agent artifact download build-products.tar .
10+
download_artifact build-products.tar
1111
tar -xf build-products.tar
1212

1313
echo "--- :wrench: Fixing VM"
1414
brew install openjdk@11
1515
sudo ln -sfn /usr/local/opt/openjdk@11/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-11.jdk
1616

17+
# Temporary fix until we're on the Xcode 13.1 VM
18+
echo "--- :rubygems: Fixing Ruby Setup"
19+
gem install bundler
20+
1721
echo "--- :rubygems: Setting up Gems"
1822
install_gems
1923

.buildkite/commands/run-unit-tests.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
#!/bin/bash -eu
22

33
echo "--- 📦 Downloading Build Artifacts"
4-
buildkite-agent artifact download build-products.tar .
4+
download_artifact build-products.tar
55
tar -xf build-products.tar
66

7+
# Temporary fix until we're on the Xcode 13.1 VM
8+
echo "--- :rubygems: Fixing Ruby Setup"
9+
gem install bundler
10+
711
echo "--- :rubygems: Setting up Gems"
812
install_gems
913

.buildkite/pipeline.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
common_params:
33
# Common plugin settings to use with the `plugins` key.
44
- &common_plugins
5-
- automattic/bash-cache#v1.5.0
5+
- automattic/bash-cache#v1.6.0
66
- automattic/git-s3-cache#v1.1.0:
77
bucket: "a8c-repo-mirrors"
88
repo: "wordpress-mobile/wordpress-ios/"
99
# Common environment values to use with the `env` key.
1010
- &common_env
11-
IMAGE_ID: xcode-12.5.1
11+
IMAGE_ID: xcode-13 # Remember to address all 'FIXIT-13.1' comments when we'll update to new image
1212

1313
# This is the default pipeline – it will build and test the app
1414
steps:
@@ -45,7 +45,7 @@ steps:
4545
# UI Tests
4646
#################
4747
- label: "🧪 UI Tests (iPhone)"
48-
command: .buildkite/commands/run-ui-tests.sh WordPressUITests 'iPhone 11' 14.1
48+
command: .buildkite/commands/run-ui-tests.sh WordPressUITests 'iPhone 13' 15.0
4949
depends_on: "build"
5050
env: *common_env
5151
plugins: *common_plugins
@@ -54,7 +54,7 @@ steps:
5454

5555

5656
- label: "🧪 UI Tests (iPad)"
57-
command: .buildkite/commands/run-ui-tests.sh WordPressUITests "iPad Air (4th generation)" 14.1
57+
command: .buildkite/commands/run-ui-tests.sh WordPressUITests "iPad Air (4th generation)" 15.0
5858
depends_on: "build"
5959
env: *common_env
6060
plugins: *common_plugins

.bundle/config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
---
22
BUNDLE_PATH: "vendor/bundle"
3+
BUNDLE_JOBS: "16"
34
BUNDLE_WITHOUT: "screenshots"

.circleci/config.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ parameters:
1515
default: false
1616

1717
xcode_version: &xcode_version
18-
xcode-version: "12.5.0"
18+
xcode-version: "13.0.0"
1919

2020
iphone_test_device: &iphone_test_device
21-
device: iPhone 11
22-
ios-version: "14.4"
21+
device: iPhone 12
22+
ios-version: "15.0"
2323

2424
ipad_test_device: &ipad_test_device
2525
device: iPad Air (4th generation)
26-
ios-version: "14.4"
26+
ios-version: "15.0"
2727

2828
commands:
2929
fix-image:
@@ -39,7 +39,7 @@ commands:
3939
echo $PATH
4040
fi
4141
42-
chruby ruby-2.6.6
42+
chruby ruby-$(cat .ruby-version)
4343
gem install bundler
4444
4545
# Prevent fastlane from checking for updates, also removing the verbose fastlane changelog at the end of each invocation.
@@ -101,7 +101,7 @@ jobs:
101101
command: bundle --path vendor/bundle
102102
- run:
103103
name: Run Unit Tests
104-
command: bundle exec fastlane test_without_building name:WordPressUnitTests try_count:3 device:'<< parameters.device >>' ios-version:'<< parameters.ios-version >>'
104+
command: bundle exec fastlane test_without_building name:WordPressUnitTests device:'<< parameters.device >>' ios-version:'<< parameters.ios-version >>'
105105
- ios/save-xcodebuild-artifacts:
106106
result-bundle-path: build/results
107107
UI Tests:
@@ -133,7 +133,7 @@ jobs:
133133
background: true
134134
- run:
135135
name: Run UI Tests
136-
command: bundle exec fastlane test_without_building name:WordPressUITests try_count:3 device:'<< parameters.device >>' ios-version:'<< parameters.ios-version >>'
136+
command: bundle exec fastlane test_without_building name:WordPressUITests device:'<< parameters.device >>' ios-version:'<< parameters.ios-version >>'
137137
- ios/save-xcodebuild-artifacts:
138138
result-bundle-path: build/results
139139
- when:
@@ -302,27 +302,27 @@ workflows:
302302
- Unit Tests:
303303
<<: *iphone_test_device
304304
requires: [ "Build Tests" ]
305-
# Always run UI tests on develop and release branches
305+
# Always run UI tests on trunk and release branches
306306
- UI Tests:
307-
name: UI Tests (iPhone 11)
307+
name: UI Tests (iPhone)
308308
<<: *iphone_test_device
309309
post-to-slack: true
310310
requires: [ "Build Tests" ]
311311
filters:
312312
branches:
313313
only:
314-
- develop
314+
- trunk
315315
- /^release.*/
316316
- /^gutenberg\/integrate_release_.*/
317317
- UI Tests:
318-
name: UI Tests (iPad Air 4th generation)
318+
name: UI Tests (iPad)
319319
<<: *ipad_test_device
320320
post-to-slack: true
321321
requires: [ "Build Tests" ]
322322
filters:
323323
branches:
324324
only:
325-
- develop
325+
- trunk
326326
- /^release.*/
327327
- /^gutenberg\/integrate_release_.*/
328328
- Build Jetpack:
@@ -334,15 +334,15 @@ workflows:
334334
filters:
335335
branches:
336336
ignore:
337-
- develop
337+
- trunk
338338
- /^release.*/
339339
- /^gutenberg\/integrate_release_.*/
340340
- UI Tests:
341-
name: UI Tests (iPhone 11)
341+
name: UI Tests (iPhone)
342342
<<: *iphone_test_device
343343
requires: [ "Optional Tests" ]
344344
- UI Tests:
345-
name: UI Tests (iPad Air 4th generation)
345+
name: UI Tests (iPad)
346346
<<: *ipad_test_device
347347
requires: [ "Optional Tests" ]
348348
Installable Build:
@@ -384,6 +384,6 @@ workflows:
384384
filters:
385385
branches:
386386
only:
387-
- develop
387+
- trunk
388388
jobs:
389389
- Jetpack Installable Build

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,15 @@ Artifacts
9090
WordPress/Resources/AppImages.xcassets/AppIcon-Internal.appiconset
9191
WordPress/Resources/Icons-Internal
9292

93-
# All secrets should be stored under .configure-files
93+
# All encrypted secrets should be stored under .configure-files
9494
# Everything without a .enc extension is ignored
9595
.configure-files/*
9696
!.configure-files/*.enc
9797

98+
# A file external contributors can have locally to provide their own credentials.
99+
# This file is created during the `rake init:oss` task, based on the Secrets-example.swift file.
100+
WordPress/Credentials/Secrets.swift
101+
98102
# Ignoring old locations to be sure they aren't commited accidentally
99103
WordPress/Credentials/wpcom_app_credentials
100104
WordPress/Credentials/wpcom_alpha_app_credentials

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.6.4
1+
2.7.4

.xcversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
12.5
1+
13.0

0 commit comments

Comments
 (0)