forked from gonzalezreal/swift-markdown-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (25 loc) · 769 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
test-macos:
xcodebuild test \
-scheme MarkdownUI \
-destination platform="macOS"
test-ios:
xcodebuild test \
-scheme MarkdownUI \
-destination platform="iOS Simulator,name=iPhone 8"
test-tvos:
xcodebuild test \
-scheme MarkdownUI \
-destination platform="tvOS Simulator,name=Apple TV"
readme-images:
rm -rf Images || true
xcodebuild test \
"OTHER_SWIFT_FLAGS=${inherited} -D README_IMAGES" \
-scheme MarkdownUI \
-destination platform="iOS Simulator,name=iPhone 8" \
-only-testing "MarkdownUITests/ReadMeImagesTests" || true
mv Tests/MarkdownUITests/__Snapshots__/ReadMeImagesTests Images
sips -Z 400 Images/*.png
test: test-macos test-ios test-tvos
format:
swift format --in-place --recursive .
.PHONY: format readme-images