mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
44 lines
1 KiB
Makefile
44 lines
1 KiB
Makefile
# 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
|
|
|
|
.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
|
|
cd $(THIRD_PARTY_DIR) && \
|
|
carthage build --platform iOS
|
|
|
|
build: dependencies
|
|
cd $(WORKING_DIR) && \
|
|
$(XCODE_BUILD) build | xcpretty
|
|
|
|
test:
|
|
bundle exec fastlane scan
|
|
cd SignalServiceKit && make test
|
|
|
|
clean: clean_carthage
|
|
cd $(WORKING_DIR) && \
|
|
$(XCODE_BUILD) clean | xcpretty
|
|
|
|
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/
|