-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (27 loc) · 1.25 KB
/
Makefile
File metadata and controls
36 lines (27 loc) · 1.25 KB
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
.PHONY: lint lint-fix format format-check build test test-ci periphery screenshots
lint:
swiftlint lint yours/ YoursWidgets/ YoursShare/
lint-fix:
swiftlint lint --fix yours/ YoursWidgets/ YoursShare/
format:
swiftformat yours/ YoursWidgets/ YoursShare/
format-check:
swiftformat --lint yours/ YoursWidgets/ YoursShare/
build:
xcodebuild -scheme yours -destination 'platform=iOS Simulator,name=iPhone 17 Pro' build
test:
@rm -rf .build/tests.xcresult
@xcodebuild test -scheme yours \
-destination 'platform=iOS Simulator,name=iPhone 17 Pro' \
-only-testing:yoursTests \
-resultBundlePath .build/tests.xcresult 2>&1 | xcbeautify --quiet
@xcrun xcresulttool get test-results summary --path .build/tests.xcresult --compact \
| jq -r '"", " \(.result) — \(.passedTests) passed, \(.failedTests) failed, \(.skippedTests) skipped (\(.totalTestCount) total)", (if (.testFailures | length) > 0 then " Failures:", (.testFailures[] | " ✗ \(.testName): \(.failureText)") else empty end), ""'
test-ci:
xcodebuild test -scheme yours \
-destination 'platform=iOS Simulator,name=iPhone 17 Pro' \
-only-testing:yoursTests 2>&1 | xcbeautify --renderer github-actions
periphery:
periphery scan
screenshots:
cd fastlane && bundle exec fastlane ios screenshots