session-ios/Makefile

46 lines
1,016 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 = ./
2018-10-22 22:01:37 +02:00
THIRD_PARTY_DIR = $(WORKING_DIR)/ThirdParty
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
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
2019-01-03 18:46:22 +01:00
setup:
rbenv install -s
gem install bundler
bundle install
dependencies:
2016-10-05 23:19:23 +02:00
cd $(WORKING_DIR) && \
git submodule update --init
2018-10-22 22:01:37 +02:00
cd $(THIRD_PARTY_DIR) && \
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:
2019-01-03 18:46:22 +01:00
bundle exec fastlane test
2018-10-22 22:01:37 +02:00
clean: clean_carthage
2016-10-10 20:48:35 +02:00
cd $(WORKING_DIR) && \
$(XCODE_BUILD) clean | xcpretty
2016-10-05 23:19:23 +02:00
2018-10-22 22:01:37 +02:00
clean_carthage:
cd $(THIRD_PARTY_DIR) && \
rm -fr Carthage/Build
# Migrating across swift versions requires me to run this sometimes
clean_carthage_cache:
rm -fr ~/Library/Caches/org.carthage.CarthageKit/