forked from signalapp/Signal-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (29 loc) · 913 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
# Make sure we're failing even though we pipe to xcpretty
SHELL=/bin/bash -o pipefail -o errexit
WORKING_DIR = ./
SCHEME = Signal
XCODE_BUILD = xcrun xcodebuild -workspace $(SCHEME).xcworkspace -scheme $(SCHEME) -sdk iphonesimulator
.PHONY: build test retest clean dependencies
default: test
ci: dependencies test
cd SignalServiceKit && make ci
update_dependencies:
bundle exec pod update
carthage update --platform iOS
dependencies:
cd $(WORKING_DIR) && \
git submodule update --init
carthage build --platform iOS
build: dependencies
cd $(WORKING_DIR) && \
$(XCODE_BUILD) build | xcpretty
test:
bundle exec fastlane scan
cd SignalServiceKit && make test
clean:
cd $(WORKING_DIR) && \
rm -fr Carthage/Build && \
$(XCODE_BUILD) clean | xcpretty
# Migrating across swift versions requires me to run this sometimes
clean_carthage_cache:
rm -fr ~/Library/Caches/org.carthage.CarthageKit/