Skip to content

Commit 538430e

Browse files
committed
Clean up pipeline
1 parent d04fe6f commit 538430e

File tree

2 files changed

+18
-22
lines changed

2 files changed

+18
-22
lines changed

.buildkite/gem-push.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/bin/bash -eu
22

3-
.buildkite/install-dependencies.sh
4-
53
echo "--- :hammer: Build Gemspec"
64
gem build fastlane-plugin-wpmreleasetoolkit.gemspec
75

.buildkite/pipeline.yml

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
# Nodes with values to reuse in the pipeline.
22
common_params:
3-
plugins: &common_plugins
4-
- &bash_cache automattic/bash-cache#v1.3.2: ~
5-
env: &common_env
6-
IMAGE_ID: xcode-12.5.1
3+
plugins:
4+
- &docker_plugin
5+
docker#v3.8.0:
6+
image: &ruby_version "ruby:2.7.4"
7+
- &docker_plugin_with_danger_token
8+
docker#v3.8.0:
9+
image: *ruby_version
10+
propagate-environment: true
11+
environment:
12+
- "DANGER_GITHUB_API_TOKEN"
713

814
steps:
915
#################
@@ -23,8 +29,10 @@ steps:
2329
2430
echo "--- :rspec: Run Rspec"
2531
bundle exec rspec --profile 10 --format progress
26-
env: *common_env
27-
plugins: *common_plugins
32+
env:
33+
IMAGE_ID: xcode-12.5.1
34+
plugins:
35+
automattic/bash-cache#v1.3.2: ~
2836
agents:
2937
queue: "mac"
3038

@@ -36,10 +44,7 @@ steps:
3644
bundle install
3745
echo "--- :rubocop: Run Rubocop"
3846
bundle exec rubocop
39-
env: *common_env
40-
plugins:
41-
- docker#v3.8.0:
42-
image: "ruby:2.7.4"
47+
plugins: [*docker_plugin]
4348
agents:
4449
queue: "default"
4550

@@ -51,13 +56,7 @@ steps:
5156
bundle install
5257
echo "--- :rubocop: Run Danger"
5358
bundle exec danger
54-
env: *common_env
55-
plugins:
56-
- docker#v3.8.0:
57-
image: "ruby:2.7.4"
58-
propagate-environment: true
59-
environment:
60-
- "DANGER_GITHUB_API_TOKEN"
59+
plugins: [*docker_plugin_with_danger_token]
6160
agents:
6261
queue: "default"
6362

@@ -71,7 +70,6 @@ steps:
7170
# commands written inline) to avoid leaking a key used in the process in clear in the
7271
# BUILDKITE_COMMAND environment variable.
7372
command: .buildkite/gem-push.sh
74-
env: *common_env
75-
plugins: *common_plugins
73+
plugins: [*docker_plugin]
7674
agents:
77-
queue: "mac"
75+
queue: "default"

0 commit comments

Comments
 (0)