Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Commit 0ce44f6

Browse files
authored
Merge 1.42.0 stable version bump (#616)
2 parents 0437b6c + b7a6bca commit 0ce44f6

File tree

12 files changed

+339
-56
lines changed

12 files changed

+339
-56
lines changed

.buildkite/pipeline.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Nodes with values to reuse in the pipeline.
2+
common_params:
3+
plugins: &common_plugins
4+
- &bash_cache automattic/bash-cache#v1.5.0: ~
5+
env: &common_env
6+
IMAGE_ID: xcode-12.5.1
7+
8+
# This is the default pipeline – it will build and test the pod
9+
steps:
10+
#################
11+
# Build and Test
12+
#################
13+
- label: "🧪 Build and Test"
14+
key: "test"
15+
command: "build_and_test_pod"
16+
env: *common_env
17+
plugins: *common_plugins
18+
19+
#################
20+
# Validate Podspec
21+
#################
22+
- label: "🔬 Validating Podspec"
23+
key: "validate"
24+
command: "validate_podspec"
25+
env: *common_env
26+
plugins: *common_plugins
27+
28+
#################
29+
# Lint
30+
#################
31+
- label: "🧹 Lint"
32+
key: "lint"
33+
command: "lint_pod"
34+
env: *common_env
35+
plugins: *common_plugins
36+
37+
#################
38+
# Publish the Podspec (if we're building a tag)
39+
#################
40+
- label: "⬆️ Publish Podspec"
41+
key: "publish"
42+
command: .buildkite/publish-pod.sh
43+
env: *common_env
44+
plugins: *common_plugins
45+
depends_on:
46+
- "test"
47+
- "validate"
48+
- "lint"
49+
if: build.tag != null
50+
agents:
51+
queue: "mac"

.buildkite/publish-pod.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash -eu
2+
3+
PODSPEC_PATH="WordPressAuthenticator.podspec"
4+
SPECS_REPO="[email protected]:wordpress-mobile/cocoapods-specs.git"
5+
SLACK_WEBHOOK=$PODS_SLACK_WEBHOOK
6+
7+
echo "--- :rubygems: Setting up Gems"
8+
install_gems
9+
10+
echo "--- :cocoapods: Publishing Pod to CocoaPods CDN"
11+
publish_pod $PODSPEC_PATH
12+
13+
echo "--- :cocoapods: Publishing Pod to WP Specs Repo"
14+
publish_private_pod $PODSPEC_PATH $SPECS_REPO "$SPEC_REPO_PUBLIC_DEPLOY_KEY"
15+
16+
echo "--- :slack: Notifying Slack"
17+
slack_notify_pod_published $PODSPEC_PATH $SLACK_WEBHOOK

.circleci/config.yml

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ orbs:
66

77
# YAML anchors for some common/repeated values
88
x-common-params:
9-
- &xcode-version "12.2.0"
9+
- &xcode-version "12.5.0"
1010
- &podspec "WordPressAuthenticator.podspec"
1111
- &on-tags-only
1212
tags:
@@ -23,26 +23,11 @@ workflows:
2323
workspace: WordPressAuthenticator.xcworkspace
2424
scheme: WordPressAuthenticator
2525
device: iPhone 11
26-
ios-version: "14.2"
26+
ios-version: "14.5"
2727
bundle-install: true
2828
pod-install: true
2929
- ios/validate-podspec:
3030
name: Validate Podspec
3131
xcode-version: *xcode-version
3232
podspec-path: *podspec
3333
bundle-install: true
34-
- ios/publish-podspec:
35-
name: Publish to a8c Spec Repo
36-
xcode-version: *xcode-version
37-
podspec-path: *podspec
38-
spec-repo: https://github.com/wordpress-mobile/cocoapods-specs.git
39-
bundle-install: true
40-
post-to-slack: false
41-
filters: *on-tags-only
42-
- ios/publish-podspec:
43-
name: Publish to Trunk
44-
xcode-version: *xcode-version
45-
podspec-path: *podspec
46-
bundle-install: true
47-
post-to-slack: true
48-
filters: *on-tags-only

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
# Xcode
44
#
5+
.build
56
build/
67
*.pbxuser
78
!default.pbxuser
@@ -28,3 +29,8 @@ DerivedData
2829
Pods/
2930

3031
/vendor
32+
33+
# Fastlane
34+
fastlane/README.md
35+
fastlane/report.xml
36+
fastlane/test_output

.rubocop.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Opt in to new cops by default
2+
AllCops:
3+
NewCops: enable
4+
5+
# Allow the Podspec filename to match the project
6+
Naming/FileName:
7+
Exclude:
8+
- 'WordPressAuthenticator.podspec'
9+
10+
Metrics/BlockLength:
11+
Exclude:
12+
- 'WordPressAuthenticator.podspec'
13+
14+
# Override the maximum line length
15+
Layout/LineLength:
16+
Max: 160

.ruby-version

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

Gemfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1+
# frozen_string_literal: true
2+
13
source 'https://rubygems.org'
24

3-
gem 'cocoapods', '~> 1.10.0'
5+
gem 'cocoapods', '~> 1.10'
6+
gem 'cocoapods-check', '~> 1.1'
7+
gem 'fastlane', '~> 2.189'
48
gem 'rubocop', '~> 1.18'

0 commit comments

Comments
 (0)