This repository was archived by the owner on Feb 5, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 12 files changed +338
-55
lines changed Expand file tree Collapse file tree 12 files changed +338
-55
lines changed Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 66
77# YAML anchors for some common/repeated values
88x-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
Original file line number Diff line number Diff line change 22
33# Xcode
44#
5+ .build
56build /
67* .pbxuser
78! default.pbxuser
@@ -28,3 +29,8 @@ DerivedData
2829Pods /
2930
3031/vendor
32+
33+ # Fastlane
34+ fastlane /README.md
35+ fastlane /report.xml
36+ fastlane /test_output
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1- 2.6.5
1+ 2.6.4
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
13source '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'
48gem 'rubocop' , '~> 1.18'
You can’t perform that action at this time.
0 commit comments