forked from signalapp/Signal-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (27 loc) · 889 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
# Make sure we're failing even though we pipe to xcpretty
SHELL=/bin/bash -o pipefail -o errexit
WORKING_DIR = ./
THIRD_PARTY_DIR = $(WORKING_DIR)/ThirdParty
SCHEME = Signal
XCODE_BUILD = xcrun xcodebuild -workspace $(SCHEME).xcworkspace -scheme $(SCHEME) -sdk iphonesimulator
SETUP_HOOK_PATH = $(HOME)/.ci/setup.sh
.PHONY: build test retest clean dependencies
default: test
update_dependencies:
bundle exec pod update
setup:
[ -x ${SETUP_HOOK_PATH} ] && ${SETUP_HOOK_PATH}
rbenv install -s
gem install bundler
bundle install
dependencies: pristine_dependencies
git submodule update --init
pristine_dependencies:
cd $(WORKING_DIR) && \
git submodule foreach --recursive "git clean -xfd" && \
git submodule foreach --recursive "git reset --hard"
build: dependencies
cd $(WORKING_DIR) && \
$(XCODE_BUILD) build | bundle exec xcpretty
test:
bundle exec fastlane test