-
-
Notifications
You must be signed in to change notification settings - Fork 572
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (33 loc) · 837 Bytes
/
Copy pathMakefile
File metadata and controls
43 lines (33 loc) · 837 Bytes
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
.PHONY: ci ci-list test build lint spm snippets help
CI := bash .scripts/ci.sh
## Run every CI job (build, test, lint) for every scheme and platform
ci:
@$(CI)
## List every job, group, and action
ci-list:
@$(CI) --list
## Run one job, group, or action, e.g. make ci-macos or make ci-test-nuke-ios
ci-%:
@$(CI) $*
## Run all unit tests (iOS, tvOS, macOS)
test:
@$(CI) test
## Compile every scheme for every platform (no tests)
build:
@$(CI) build
## Run SwiftLint
lint:
@$(CI) lint
## Build the package with SwiftPM
spm:
@$(CI) spm
## Compile the code samples from the DocC articles
snippets:
@$(CI) snippets
## Show available targets
help:
@echo ""
@echo "Usage: make <target>"
@echo ""
@awk '/^## /{desc=substr($$0,4); next} /^[a-zA-Z_%-]+:/{printf " %-16s %s\n", $$1, desc; desc=""}' $(MAKEFILE_LIST)
@echo ""