forked from swiftyfinch/Rugby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (33 loc) · 878 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
39
40
.PHONY: debug
debug: lint
swift build --arch x86_64
.PHONY: lint
lint:
swiftlint --strict --quiet
.PHONY: release
release:
rm -rf Release
mkdir -p Release
swift package clean
swift build -c release --arch x86_64
cp -f `swift build -c release --arch x86_64 --show-bin-path`/rugby Release/rugby
strip -rSTx Release/rugby
cd Release && zip -r x86_64.zip rugby
@echo
swift package clean
swift build --arch arm64 -c release
cp -f `swift build -c release --arch arm64 --show-bin-path`/rugby Release/rugby
strip -rSTx Release/rugby
cd Release && zip -r arm64.zip rugby
.PHONY: mocks
mocks:
sourcery --sources Sources/RugbyFoundation \
--sources Tests/FoundationTests \
--templates Tests/Sourcery/AutoMockable.stencil \
--output Tests/FoundationTests
.PHONY: test
test:
swift test | xcbeautify
.PHONY: smoke
smoke:
cd Example && Tests/CacheTests.sh