-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
42 lines (32 loc) · 986 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
30
31
32
33
34
35
36
37
38
39
40
41
42
# $(eval PLATFORM_IOS = $(shell swift run cli "iphone se"))
# $(eval PLATFORM_TVOS = $(shell swift run cli "Apple TV 4K"))
# @echo "${PLATFORM_IOS}"
init:
git config core.hooksPath .githooks
default: test-all
test: test-swift test-macos
test-macos:
swift package generate-xcodeproj
set -o pipefail && \
xcodebuild test \
-scheme PlatformLookup-Package \
-destination platform="macOS" \
test-swift:
swift test \
--enable-pubgrub-resolver \
--enable-test-discovery \
--parallel
generate-enum-properties:
generate-enum-properties Sources/**/*.swift
gitignore-flush:
git rm -r --cached .
git add .
git commit -m ".gitignore flush"
install-generate-enum-properties:
echo "Installing swift-enum-properties"
git clone https://github.com/pointfreeco/swift-enum-properties.git /tmp/__hawkci__/swift-enum-properties
cd /tmp/__hawkci__/swift-enum-properties
make install
format:
swift format --in-place --configuration .swift-format --recursive .
.PHONY: format