2016-10-05 23:19:23 +02:00
|
|
|
# Make sure we're failing even though we pipe to xcpretty
|
2016-10-10 20:48:35 +02:00
|
|
|
SHELL=/bin/bash -o pipefail -o errexit
|
2016-10-05 23:19:23 +02:00
|
|
|
|
|
|
|
WORKING_DIR = ./
|
2016-10-10 20:48:35 +02:00
|
|
|
SCHEME = Signal
|
2017-09-26 03:51:15 +02:00
|
|
|
XCODE_BUILD = xcrun xcodebuild -workspace $(SCHEME).xcworkspace -scheme $(SCHEME) -sdk iphonesimulator
|
2016-10-10 20:48:35 +02:00
|
|
|
|
2016-11-01 20:02:15 +01:00
|
|
|
.PHONY: build test retest clean dependencies
|
2016-10-05 23:19:23 +02:00
|
|
|
|
|
|
|
default: test
|
|
|
|
|
2016-11-01 20:02:15 +01:00
|
|
|
ci: dependencies test
|
2017-07-21 15:42:58 +02:00
|
|
|
cd SignalServiceKit && make ci
|
2017-07-11 19:14:21 +02:00
|
|
|
|
2017-03-14 00:20:00 +01:00
|
|
|
update_dependencies:
|
2017-07-11 19:14:21 +02:00
|
|
|
bundle exec pod update
|
2017-03-15 23:50:34 +01:00
|
|
|
carthage update --platform iOS
|
2017-03-14 00:20:00 +01:00
|
|
|
|
2016-11-01 20:02:15 +01:00
|
|
|
dependencies:
|
2016-10-05 23:19:23 +02:00
|
|
|
cd $(WORKING_DIR) && \
|
2016-10-10 22:02:09 +02:00
|
|
|
git submodule update --init
|
|
|
|
carthage build --platform iOS
|
2016-10-10 20:48:35 +02:00
|
|
|
|
2016-11-01 20:02:15 +01:00
|
|
|
build: dependencies
|
2016-10-10 20:48:35 +02:00
|
|
|
cd $(WORKING_DIR) && \
|
|
|
|
$(XCODE_BUILD) build | xcpretty
|
2016-10-05 23:19:23 +02:00
|
|
|
|
2017-07-21 15:42:58 +02:00
|
|
|
test:
|
2017-07-11 19:14:21 +02:00
|
|
|
bundle exec fastlane scan
|
2017-08-09 18:16:12 +02:00
|
|
|
cd SignalServiceKit && make test
|
2017-07-11 19:14:21 +02:00
|
|
|
|
2016-10-10 20:48:35 +02:00
|
|
|
clean:
|
|
|
|
cd $(WORKING_DIR) && \
|
2016-11-01 20:02:15 +01:00
|
|
|
rm -fr Carthage/Build && \
|
2017-09-26 03:51:15 +02:00
|
|
|
$(XCODE_BUILD) clean | xcpretty
|
2016-10-05 23:19:23 +02:00
|
|
|
|
2017-09-26 03:51:15 +02:00
|
|
|
# Migrating across swift versions requires me to run this sometimes
|
|
|
|
clean_carthage_cache:
|
|
|
|
rm -fr ~/Library/Caches/org.carthage.CarthageKit/
|