mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
32 lines
596 B
Makefile
32 lines
596 B
Makefile
# Make sure we're failing even though we pipe to xcpretty
|
|
SHELL=/bin/bash -o pipefail -o errexit
|
|
|
|
WORKING_DIR = Example/TSKitiOSTestApp
|
|
SCHEME = TSKitiOSTestApp
|
|
|
|
XCODE_BUILD = xcrun xcodebuild -workspace $(SCHEME).xcworkspace -scheme $(SCHEME) -sdk iphonesimulator
|
|
|
|
.PHONY: build test retest clean
|
|
|
|
default: test
|
|
ci: test
|
|
|
|
test: dependencies test
|
|
|
|
dependencies:
|
|
cd $(WORKING_DIR) && \
|
|
bundle exec pod install
|
|
|
|
build: pod_install
|
|
cd $(WORKING_DIR) && \
|
|
$(XCODE_BUILD) build | xcpretty
|
|
|
|
test:
|
|
bundle exec fastlane scan
|
|
|
|
clean:
|
|
cd $(WORKING_DIR) && \
|
|
$(XCODE_BUILD) \
|
|
clean | xcpretty
|
|
|