-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from Automattic/add/buildkite
Add Buildkite
- Loading branch information
Showing
11 changed files
with
406 additions
and
84 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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Nodes with values to reuse in the pipeline. | ||
common_params: | ||
plugins: &common_plugins | ||
- &bash_cache automattic/bash-cache#v1.3.2: ~ | ||
# Common environment values to use with the `env` key. | ||
env: &common_env | ||
IMAGE_ID: xcode-12.5.1 | ||
|
||
# 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 | ||
|
||
################# | ||
# Validate Podspec | ||
################# | ||
- label: "🔬 Validating Podspec" | ||
key: "validate" | ||
command: "validate_podspec" | ||
env: *common_env | ||
plugins: *common_plugins | ||
|
||
################# | ||
# Lint | ||
################# | ||
- label: "🧹 Lint" | ||
key: "lint" | ||
command: "lint_pod" | ||
env: *common_env | ||
plugins: *common_plugins | ||
|
||
################# | ||
# Publish the Podspec (if we're building a tag) | ||
################# | ||
- label: "⬆️ Publish Podspec" | ||
key: "publish" | ||
command: .buildkite/publish-pod.sh | ||
env: *common_env | ||
plugins: *common_plugins | ||
depends_on: | ||
- "test" | ||
- "validate" | ||
- "lint" | ||
if: build.tag != null | ||
agents: | ||
queue: "mac" |
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,13 @@ | ||
#!/bin/bash -eu | ||
|
||
PODSPEC_PATH="Gridicons.podspec" | ||
SLACK_WEBHOOK=$PODS_SLACK_WEBHOOK | ||
|
||
echo "--- :rubygems: Setting up Gems" | ||
install_gems | ||
|
||
echo "--- :cocoapods: Publishing Pod to CocoaPods CDN" | ||
publish_pod $PODSPEC_PATH | ||
|
||
echo "--- :slack: Notifying Slack" | ||
slack_notify_pod_published $PODSPEC_PATH $SLACK_WEBHOOK |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Opt in to new cops by default | ||
AllCops: | ||
NewCops: enable | ||
|
||
# Allow the Podspec filename to match the project | ||
Naming/FileName: | ||
Exclude: | ||
- 'Gridicons.podspec' | ||
|
||
# Override the maximum block length (some pods have long definitions) | ||
Metrics/BlockLength: | ||
Max: 256 | ||
|
||
# Override the maximum line length | ||
Layout/LineLength: | ||
Max: 160 | ||
|
||
require: rubocop-rake |
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.5.5 | ||
2.6.4 |
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,4 +1,10 @@ | ||
source 'https://rubygems.org' do | ||
gem 'rake', '~> 13' | ||
gem 'cocoapods', '~> 1.8' | ||
end | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
|
||
gem 'cocoapods', '~> 1.10' | ||
gem 'cocoapods-check', '~> 1.1' | ||
gem 'fastlane', '~> 2.189' | ||
gem 'rake', '~> 13' | ||
gem 'rubocop', '~> 1.18' | ||
gem 'rubocop-rake', '~> 0.6.0' |
Oops, something went wrong.