-
Notifications
You must be signed in to change notification settings - Fork 9
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 #299 from wordpress-mobile/add/buildkite
Add Buildkite
- Loading branch information
Showing
12 changed files
with
109 additions
and
147 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,4 @@ | ||
brew "pkg-config" | ||
brew "libxml2" | ||
brew "imagemagick@6" | ||
brew "git-lfs" |
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 @@ | ||
#!/bin/bash -eu | ||
|
||
echo "--- :beer: Installing Dependencies" | ||
brew bundle --file .buildkite/brewfile | ||
|
||
echo "--- :rubygems: Setting up Gems" | ||
install_gems | ||
|
||
echo "--- :hammer: Build Gemspec" | ||
gem build fastlane-plugin-wpmreleasetoolkit.gemspec | ||
|
||
echo "--- :sleuth_or_spy: Validate Gem Install" | ||
gem install --user-install fastlane-plugin-wpmreleasetoolkit-*.gem | ||
|
||
echo "--- :rubygems: Gem Push" | ||
echo ":rubygems_api_key: ${RUBYGEMS_API_KEY}" >>".gem-credentials" | ||
chmod 600 ".gem-credentials" | ||
gem push --config-file ".gem-credentials" fastlane-plugin-wpmreleasetoolkit-*.gem |
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,77 @@ | ||
# Nodes with values to reuse in the pipeline. | ||
common_params: | ||
plugins: &common_plugins | ||
- &bash_cache automattic/bash-cache#v1.3.2: ~ | ||
env: &common_env | ||
IMAGE_ID: xcode-12.5.1 | ||
|
||
steps: | ||
################# | ||
# Build and Test | ||
################# | ||
- label: "🧪 Build and Test" | ||
key: "test" | ||
command: | | ||
echo "--- :beer: Installing Dependencies" | ||
brew bundle --file .buildkite/brewfile | ||
echo "--- :rubygems: Setting up Gems" | ||
install_gems | ||
echo "--- :hammer: Build DrawText" | ||
bundle exec rake compile | ||
echo "--- :git: Setting up git-lfs" | ||
git-lfs install | ||
echo "--- :rspec: Run Rspec" | ||
bundle exec rspec --profile 10 --format progress | ||
env: *common_env | ||
plugins: *common_plugins | ||
agents: | ||
queue: "mac" | ||
|
||
################# | ||
# Lint | ||
################# | ||
- label: "🧹 Lint" | ||
command: | | ||
echo "--- :rubygems: Setting up Gems" | ||
install_gems | ||
echo "--- :rubocop: Run Rubocop" | ||
bundle exec rubocop | ||
env: *common_env | ||
plugins: *common_plugins | ||
agents: | ||
queue: "mac" | ||
|
||
################# | ||
# Danger | ||
################# | ||
- label: "⛔️ Danger" | ||
command: | | ||
echo "--- :rubygems: Setting up Gems" | ||
install_gems | ||
echo "--- :rubocop: Run Danger" | ||
bundle exec danger | ||
env: *common_env | ||
plugins: *common_plugins | ||
agents: | ||
queue: "mac" | ||
|
||
################# | ||
# Push to RubyGems | ||
################# | ||
- label: ":rubygems: Publish to RubyGems" | ||
key: "gem-push" | ||
if: build.tag != null | ||
# Note: We intentionally call a separate `.sh` script here (as opposed to having all the | ||
# commands written inline) to avoid leaking a key used in the process in clear in the | ||
# BUILDKITE_COMMAND environment variable. | ||
command: .buildkite/gem-push.sh | ||
env: *common_env | ||
plugins: *common_plugins | ||
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
--- | ||
BUNDLE_PATH: "vendor/bundle" | ||
BUNDLE_SPECIFIC_PLATFORM: "false" | ||
BUNDLE_WITH: "test" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -18,7 +18,7 @@ _None_ | |
|
||
### Internal Changes | ||
|
||
_None_ | ||
- Replace CircleCI and GitHub Actions with Buildkite | ||
|
||
## 2.0.0 | ||
|
||
|
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