-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
29 lines (22 loc) · 872 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
.DEFAULT_GOAL := default
default: lint test
lint: buildkite-plugin-lint rubocop shellcheck
test: buildkite-plugin-test rspec
docker_run := docker run -t --rm -v "${PWD}"/:/plugin:ro -w /plugin
buildkite-plugin-lint:
@echo ~~~ 🕵️ Plugin Linter
$(docker_run) buildkite/plugin-linter --id automattic/a8c-ci-toolkit
shellcheck:
@echo ~~~ 🕵️ ShellCheck
$(docker_run) koalaman/shellcheck hooks/** bin/** --exclude=SC1071
rubocop:
@echo ~~~ 🕵️ Rubocop
$(docker_run) ruby:3.2.2 /bin/bash -c \
"gem install --silent rubocop -v 1.62.1 && rubocop -A tests/test-that-all-files-are-executable.rb"
buildkite-plugin-test:
@echo ~~~ 🔬 Plugin Tester
$(docker_run) buildkite/plugin-tester
rspec:
@echo ~~~ 🔬 Rspec
$(docker_run) ruby:3.2.2 /bin/bash -c \
"gem install --silent rspec -v 3.13.0 && rspec tests/test-that-all-files-are-executable.rb"