-
Notifications
You must be signed in to change notification settings - Fork 77
/
Makefile
48 lines (40 loc) · 1.06 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
PLATFORM_IOS = iOS Simulator,name=iPhone 11 Pro
PLATFORM_MACOS = macOS
PLATFORM_TVOS = tvOS Simulator,name=Apple TV
default: test
benchmarks:
swift run -c release swift-parsing-benchmark
test:
xcodebuild test \
-workspace Parsing.xcworkspace \
-scheme Parsing \
-destination platform="$(PLATFORM_IOS)"
xcodebuild test \
-workspace Parsing.xcworkspace \
-scheme Parsing \
-destination platform="$(PLATFORM_MACOS)"
xcodebuild test \
-workspace Parsing.xcworkspace \
-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
.PHONY: benchmarks format generate-variadics test