This repository was archived by the owner on Dec 26, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +26
-11
lines changed Expand file tree Collapse file tree 1 file changed +26
-11
lines changed Original file line number Diff line number Diff line change 1
1
DOCKER_COMPOSE_CHECK := docker compose run --rm
2
2
3
- # Linting
3
+ .PHONY : all
4
+ all : format
5
+ all : lint
6
+ all : test
7
+ all : # # Run all operations
8
+
9
+ .PHONY : help
10
+ help : # # Print this help
11
+ @awk ' BEGIN {FS = ":.*##"; printf "Usage: make <target>\n"} \
12
+ /^[a-zA-Z0-9_-]+:.*? # #/ { printf " %-46s %s\n", $$1, $$2 } \
13
+ /^# #@/ { printf "\n%s\n", substr($$0, 5) } ' \
14
+ $(MAKEFILE_LIST )
15
+ @printf ' \n'
16
+
17
+ # #@ Linting
4
18
# #######################################################################
5
19
6
20
.PHONY : lint
7
- lint : lint-plugin lint-shell
21
+ lint : lint-plugin
22
+ lint : lint-shell
23
+ lint : # # Perform lint checks on all files
8
24
9
25
.PHONY : lint-plugin
10
- lint-plugin :
26
+ lint-plugin : # # Lint the Buildkite plugin metadata
11
27
$(DOCKER_COMPOSE_CHECK ) plugin-linter
12
28
13
29
.PHONY : lint-shell
14
- lint-shell :
30
+ lint-shell : # # Lint the shell scripts
15
31
./pants lint ::
16
32
17
- # Formatting
33
+ # #@ Formatting
18
34
# #######################################################################
19
35
20
36
.PHONY : format
21
37
format : format-shell
38
+ format : # # Automatically format all code
22
39
23
40
.PHONY : format-shell
24
- format-shell :
41
+ format-shell : # # Format shell scripts
25
42
./pants fmt ::
26
43
27
- # Testing
44
+ # #@ Testing
28
45
# #######################################################################
29
46
30
47
.PHONY : test
31
48
test : test-plugin
49
+ test : # # Run all tests
32
50
33
51
.PHONY : test-plugin
34
- test-plugin :
52
+ test-plugin : # # Test the Buildkite plugin locally (does *not* run a Buildkite pipeline)
35
53
$(DOCKER_COMPOSE_CHECK ) plugin-tester
36
-
37
- .PHONY : all
38
- all : format lint test
You can’t perform that action at this time.
0 commit comments