forked from pointfreeco/swift-parsing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (40 loc) · 1.07 KB
/
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
43
44
45
46
47
48
49
PLATFORM_IOS = iOS Simulator,name=iPhone 11 Pro
PLATFORM_MACOS = macOS
PLATFORM_TVOS = tvOS Simulator,name=Apple TV 4K (at 1080p)
default: test
benchmarks:
swift run -c release swift-parsing-benchmark
test:
xcodebuild test \
-scheme Parsing \
-destination platform="$(PLATFORM_IOS)"
xcodebuild test \
-scheme Parsing \
-destination platform="$(PLATFORM_MACOS)"
xcodebuild test \
-scheme Parsing \
-destination platform="$(PLATFORM_TVOS)"
test-linux:
docker run \
--rm \
-v "$(PWD):$(PWD)" \
-w "$(PWD)" \
swift:5.3 \
bash -c 'make test-swift'
test-swift:
swift test \
--enable-test-discovery \
--parallel
format:
swift format --in-place --recursive \
./Package.swift ./Sources ./Tests
find . -type f -name '*.md' -print0 | xargs -0 perl -pi -e 's/ +$$//'
generate-variadics:
swift run variadics-generator \
--generate-zips \
--generate-one-ofs \
> Sources/Parsing/Builders/Variadics.swift
swift run variadics-generator \
--generate-path-zips \
> Sources/_URLRouting/Builders/Variadics.swift
.PHONY: benchmarks format generate-variadics test