-
Notifications
You must be signed in to change notification settings - Fork 149
Add Buildkite #1349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Buildkite #1349
Changes from all commits
fcef9a7
44761b5
b219483
6bde754
a0b5b18
0b35799
53a9171
f6e73ae
9a63754
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,80 @@ | ||
| # Nodes with values to reuse in the pipeline. | ||
| common_params: | ||
| plugins: &common_plugins | ||
| - &bash_cache automattic/bash-cache#2.0.0: ~ | ||
| # Common environment values to use with the `env` key. | ||
| env: &common_env | ||
| IMAGE_ID: xcode-13 | ||
|
|
||
| # This is the default pipeline – it will build and test the app | ||
| steps: | ||
| ################# | ||
| # Build and Test | ||
| ################# | ||
| - label: "🧪 Build and Test" | ||
| key: "test" | ||
| command: | | ||
| # See https://github.com/Automattic/bash-cache-buildkite-plugin/issues/16 | ||
| gem install bundler:2.3.4 | ||
|
|
||
| build_and_test_pod | ||
| env: *common_env | ||
| plugins: *common_plugins | ||
|
|
||
| ################# | ||
| # Validate Podspecs | ||
| ################# | ||
| - label: "🔬 Validate Podspecs" | ||
| key: "validate" | ||
| command: | | ||
| # See https://github.com/Automattic/bash-cache-buildkite-plugin/issues/16 | ||
| gem install bundler:2.3.4 | ||
|
|
||
| validate_podspec | ||
| env: *common_env | ||
| plugins: *common_plugins | ||
|
|
||
| ################# | ||
| # Lint | ||
| ################# | ||
| - label: "🧹 Lint" | ||
| key: "lint" | ||
| command: | | ||
| # See https://github.com/Automattic/bash-cache-buildkite-plugin/issues/16 | ||
| gem install bundler:2.3.4 | ||
|
|
||
| lint_pod | ||
| env: *common_env | ||
| plugins: *common_plugins | ||
|
|
||
| ################# | ||
| # Publish the Podspec (if we're building a tag) | ||
| ################# | ||
| - label: "⬆️ Publish Aztec Podspec" | ||
| key: "publish-aztec" | ||
| command: .buildkite/publish-aztec-pod.sh | ||
| env: *common_env | ||
| plugins: *common_plugins | ||
| depends_on: | ||
| - "test" | ||
| - "validate" | ||
| - "lint" | ||
| if: build.tag != null | ||
| agents: | ||
| queue: "mac" | ||
|
|
||
| ################# | ||
| # Publish the Podspec (if we're building a tag) | ||
| ################# | ||
| - label: "⬆️ Publish Editor Podspec" | ||
| key: "publish-editor" | ||
| command: .buildkite/publish-editor-pod.sh | ||
| env: *common_env | ||
| plugins: *common_plugins | ||
| depends_on: | ||
| - "test" | ||
| - "validate" | ||
| - "lint" | ||
| if: build.tag != null | ||
| agents: | ||
| queue: "mac" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| #!/bin/bash -eu | ||
|
|
||
| PODSPEC_PATH="WordPress-Aztec-iOS.podspec" | ||
| SPECS_REPO="git@github.com:wordpress-mobile/cocoapods-specs.git" | ||
| SLACK_WEBHOOK=$PODS_SLACK_WEBHOOK | ||
|
|
||
| echo "--- :rubygems: Setting up Gems" | ||
| # See https://github.com/Automattic/bash-cache-buildkite-plugin/issues/16 | ||
| gem install bundler:2.3.4 | ||
|
|
||
| install_gems | ||
|
|
||
| echo "--- :cocoapods: Publishing Pod to CocoaPods CDN" | ||
| publish_pod $PODSPEC_PATH | ||
|
|
||
| echo "--- :cocoapods: Publishing Pod to WP Specs Repo" | ||
| publish_private_pod $PODSPEC_PATH $SPECS_REPO "$SPEC_REPO_PUBLIC_DEPLOY_KEY" | ||
|
|
||
| echo "--- :slack: Notifying Slack" | ||
| slack_notify_pod_published $PODSPEC_PATH $SLACK_WEBHOOK |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| #!/bin/bash -eu | ||
|
|
||
| PODSPEC_PATH="WordPress-Editor-iOS.podspec" | ||
| SPECS_REPO="git@github.com:wordpress-mobile/cocoapods-specs.git" | ||
| SLACK_WEBHOOK=$PODS_SLACK_WEBHOOK | ||
|
|
||
| echo "--- :rubygems: Setting up Gems" | ||
| # See https://github.com/Automattic/bash-cache-buildkite-plugin/issues/16 | ||
| gem install bundler:2.3.4 | ||
|
|
||
| install_gems | ||
|
|
||
| echo "--- :cocoapods: Publishing Pod to CocoaPods CDN" | ||
| publish_pod $PODSPEC_PATH | ||
|
|
||
| echo "--- :cocoapods: Publishing Pod to WP Specs Repo" | ||
| publish_private_pod $PODSPEC_PATH $SPECS_REPO "$SPEC_REPO_PUBLIC_DEPLOY_KEY" | ||
|
|
||
| echo "--- :slack: Notifying Slack" | ||
| slack_notify_pod_published $PODSPEC_PATH $SLACK_WEBHOOK |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| # Opt in to new cops by default | ||
| AllCops: | ||
| NewCops: enable | ||
|
|
||
| # Allow the Podspec filename to match the project | ||
| Naming/FileName: | ||
| Exclude: | ||
| - 'WordPress-Aztec-iOS.podspec' | ||
| - 'WordPress-Editor-iOS.podspec' | ||
| - 'Example/Carthage/Checkouts/Gridicons-iOS/Gridicons.podspec' |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1456,7 +1456,7 @@ | |
| isa = PBXProject; | ||
| attributes = { | ||
| LastSwiftUpdateCheck = 0800; | ||
| LastUpgradeCheck = 1230; | ||
| LastUpgradeCheck = 1310; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Time to upgrade to Xcode 13.2 @jkmassel 😝 |
||
| ORGANIZATIONNAME = "Automattic Inc."; | ||
| TargetAttributes = { | ||
| 5951CB8D1D8BC93600E1866F = { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <Scheme | ||
| LastUpgradeVersion = "1230" | ||
| LastUpgradeVersion = "1310" | ||
| version = "1.3"> | ||
| <BuildAction | ||
| parallelizeBuildables = "YES" | ||
|
|
@@ -56,6 +56,17 @@ | |
| BlueprintName = "AztecTests" | ||
| ReferencedContainer = "container:Aztec.xcodeproj"> | ||
| </BuildableReference> | ||
| <SkippedTests> | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These tests don't work under iOS 15, so they're disabled for now
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was going to open a PR similar to wordpress-mobile/MediaEditor-iOS#29 here, but I'll wait for input on my question regarding the future of this library. |
||
| <Test | ||
| Identifier = "BlockquoteFormatterTests/testToggleBlockquoteTwiceLeavesReturnsIdenticalString()"> | ||
| </Test> | ||
| <Test | ||
| Identifier = "UIImageResizeTests/testResizingImageWorks()"> | ||
| </Test> | ||
| <Test | ||
| Identifier = "UIImageResizeTests/testResizingImageWorks2()"> | ||
| </Test> | ||
| </SkippedTests> | ||
| </TestableReference> | ||
| </Testables> | ||
| </TestAction> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,7 @@ | ||
| source 'https://rubygems.org' do | ||
| gem 'cocoapods', '1.7.5' | ||
| end | ||
| # frozen_string_literal: true | ||
|
|
||
| source 'https://rubygems.org' | ||
|
|
||
| gem 'cocoapods', '~> 1.8.0' | ||
| gem 'fastlane', '~> 2.189' | ||
| gem 'rubocop', '~> 1.18' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Muscle memory was going to make me suggest to use 🔬 but I don't know whether that's appropriate for a "Build and Test" step 🤔 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"🛠️ " ? 😇