session-ios/Makefile

40 lines
913 B
Makefile
Raw Normal View History

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
XCODE_BUILD = xcrun xcodebuild -workspace $(SCHEME).xcworkspace -scheme $(SCHEME) -sdk iphonesimulator
2016-10-10 20:48:35 +02:00
.PHONY: build test retest clean dependencies
2016-10-05 23:19:23 +02:00
default: test
ci: dependencies test
cd SignalServiceKit && make ci
2017-03-14 00:20:00 +01:00
update_dependencies:
bundle exec pod update
carthage update --platform iOS
2017-03-14 00:20:00 +01:00
dependencies:
2016-10-05 23:19:23 +02:00
cd $(WORKING_DIR) && \
git submodule update --init
carthage build --platform iOS
2016-10-10 20:48:35 +02: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
test:
bundle exec fastlane scan
cd SignalServiceKit && make test
2016-10-10 20:48:35 +02:00
clean:
cd $(WORKING_DIR) && \
rm -fr Carthage/Build && \
$(XCODE_BUILD) clean | xcpretty
2016-10-05 23:19:23 +02:00
# Migrating across swift versions requires me to run this sometimes
clean_carthage_cache:
rm -fr ~/Library/Caches/org.carthage.CarthageKit/