Skip to content
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 #299

Merged
merged 19 commits into from
Oct 22, 2021
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .buildkite/gem-push.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/sh
AliSoftware marked this conversation as resolved.
Show resolved Hide resolved

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
17 changes: 17 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ steps:
plugins: *common_plugins
agents:
queue: "mac"

#################
# Lint
#################
Expand All @@ -55,3 +56,19 @@ steps:

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
command: .buildkite/gem-push.sh
AliSoftware marked this conversation as resolved.
Show resolved Hide resolved
env: *common_env
plugins: *common_plugins
agents:
queue: "mac"