2017-07-21 19:55:01 +02:00
|
|
|
# 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
|
2017-08-14 17:31:43 +02:00
|
|
|
ci: dependencies test
|
2017-07-21 19:55:01 +02:00
|
|
|
|
2017-07-21 15:42:58 +02:00
|
|
|
dependencies:
|
2017-07-21 19:55:01 +02:00
|
|
|
cd $(WORKING_DIR) && \
|
|
|
|
bundle exec pod install
|
|
|
|
|
|
|
|
build: pod_install
|
|
|
|
cd $(WORKING_DIR) && \
|
|
|
|
$(XCODE_BUILD) build | xcpretty
|
|
|
|
|
2017-07-21 15:42:58 +02:00
|
|
|
test:
|
2017-07-21 19:55:01 +02:00
|
|
|
bundle exec fastlane scan
|
|
|
|
|
|
|
|
clean:
|
|
|
|
cd $(WORKING_DIR) && \
|
|
|
|
$(XCODE_BUILD) \
|
|
|
|
clean | xcpretty
|
|
|
|
|