-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
385 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,73 +1,72 @@ | ||
# Nodes with values to reuse in the pipeline. | ||
common_params: | ||
plugins: &common_plugins | ||
- automattic/a8c-ci-toolkit#3.3.0 | ||
# Common environment values to use with the `env` key. | ||
env: &common_env | ||
IMAGE_ID: xcode-15.0.1 | ||
agents: | ||
queue: mac | ||
env: | ||
IMAGE_ID: $IMAGE_ID | ||
|
||
# This is the default pipeline – it will build and test the app | ||
steps: | ||
################# | ||
# Build and Test | ||
################# | ||
- label: "🧪 Build and Test" | ||
key: "test" | ||
command: | | ||
build_and_test_pod | ||
env: *common_env | ||
plugins: *common_plugins | ||
- label: 🧪 Build and Test | ||
key: test | ||
command: build_and_test_pod | ||
plugins: [$CI_TOOLKIT_PLUGIN] | ||
notify: | ||
- github_commit_status: | ||
context: Unit Tests | ||
|
||
################# | ||
# Validate Podspecs | ||
################# | ||
- label: "🔬 Validate Podspecs" | ||
key: "validate" | ||
command: | | ||
validate_podspec --patch-cocoapods | ||
env: *common_env | ||
plugins: *common_plugins | ||
agents: | ||
queue: mac | ||
- label: 🔬 Validate Podspecs | ||
key: validate | ||
# Ideally, --allow-warnings should be removed once the warnings have been addressed | ||
command: validate_podspec --patch-cocoapods --allow-warnings | ||
plugins: [$CI_TOOLKIT_PLUGIN] | ||
notify: | ||
- github_commit_status: | ||
context: Validate Podspecs | ||
|
||
################# | ||
# Lint | ||
################# | ||
- label: "🧹 Lint" | ||
key: "lint" | ||
command: | | ||
lint_pod | ||
env: *common_env | ||
plugins: *common_plugins | ||
- label: 🧹 Lint | ||
key: lint | ||
command: lint_pod | ||
plugins: [$CI_TOOLKIT_PLUGIN] | ||
notify: | ||
- github_commit_status: | ||
context: Lint Pod | ||
|
||
################# | ||
# Publish the Podspec (if we're building a tag) | ||
################# | ||
- label: "⬆️ Publish Aztec Podspec" | ||
key: "publish-aztec" | ||
- label: ⬆️ Publish Aztec Podspec | ||
key: publish-aztec | ||
command: .buildkite/publish-aztec-pod.sh | ||
env: *common_env | ||
plugins: *common_plugins | ||
plugins: [$CI_TOOLKIT_PLUGIN] | ||
depends_on: | ||
- "test" | ||
- "validate" | ||
- "lint" | ||
- test | ||
- validate | ||
- lint | ||
if: build.tag != null | ||
agents: | ||
queue: "mac" | ||
notify: | ||
- github_commit_status: | ||
context: Publish Aztec Podspec | ||
|
||
################# | ||
# Publish the Podspec (if we're building a tag) | ||
################# | ||
- label: "⬆️ Publish Editor Podspec" | ||
key: "publish-editor" | ||
- label: ⬆️ Publish Editor Podspec | ||
key: publish-editor | ||
command: .buildkite/publish-editor-pod.sh | ||
env: *common_env | ||
plugins: *common_plugins | ||
plugins: [$CI_TOOLKIT_PLUGIN] | ||
depends_on: | ||
- "test" | ||
- "validate" | ||
- "lint" | ||
- test | ||
- validate | ||
- lint | ||
if: build.tag != null | ||
agents: | ||
queue: "mac" | ||
notify: | ||
- github_commit_status: | ||
context: Publish WordPress-Editor Podspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
|
||
# This file is `source`'d before calling `buildkite-agent pipeline upload`, and can be used | ||
# to set up some variables that will be interpolated in the `.yml` pipeline before uploading it. | ||
|
||
# The ~> modifier is not currently used, but we check for it just in case | ||
XCODE_VERSION=$(sed -E 's/^~> ?//' .xcode-version) | ||
CI_TOOLKIT_PLUGIN_VERSION="3.8.0" | ||
|
||
export IMAGE_ID="xcode-$XCODE_VERSION-macos-14.7.1-v1" | ||
export CI_TOOLKIT_PLUGIN="automattic/a8c-ci-toolkit#$CI_TOOLKIT_PLUGIN_VERSION" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.7.4 | ||
3.2.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
16.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
import Foundation | ||
import UIKit | ||
|
||
// MARK: - NSAttributedString Archive methods | ||
// | ||
extension NSAttributedString | ||
{ | ||
static let pastesboardUTI = "com.wordpress.aztec.attributedString" | ||
static let pasteboardUTI = UIPasteboard.UTType(identifier: "com.wordpress.aztec.attributedString") | ||
|
||
func archivedData() throws -> Data { | ||
return try NSKeyedArchiver.archivedData(withRootObject: self, requiringSecureCoding: false) | ||
} | ||
|
||
static func unarchive(with data: Data) throws -> NSAttributedString? { | ||
return try NSKeyedUnarchiver.unarchivedObject(ofClass: NSAttributedString.self, from: data) | ||
return try NSKeyedUnarchiver.unarchivedObject(ofClasses: [NSAttributedString.self, HTMLRepresentation.self], from: data) as? NSAttributedString | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.