forked from mttcrsp/fosdem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (33 loc) · 832 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
export PATH := /opt/homebrew/bin/:$(PATH)
generate_project:
xcodegen
run_mockolo:
if [ ! -f "App/Mocks" ]; then \
mkdir App/Mocks/ && \
touch App/Mocks/Mockolo.swift; \
fi; \
mockolo \
--sourcedirs App/Sources/ \
--destination App/Mocks/Mockolo.swift \
--testable-imports Fosdem \
--mock-final \
--enable-args-history
run_swiftformat::
if [ -z "$(IS_CI)" ]; then \
swiftformat .; \
fi
run_swiftgen:
if [ ! -f "App/Sources/Derived" ]; then \
mkdir App/Sources/Derived; \
fi; \
swiftgen run strings App/Resources/* \
-t structured-swift5 \
-o App/Sources/Derived/Strings.swift
swiftgen run xcassets App/Resources/* \
-t swift5 \
-o App/Sources/Derived/Assets.swift
test:
xcodebuild \
-scheme FOSDEM \
-destination 'platform=iOS Simulator,OS=16.2,name=iPhone 8 Plus' \
test | xcbeautify