Fixing travis

// FREEBIE
pull/1/head
Michael Kirk 9 years ago
parent a04b351455
commit f63cfdac7e

@ -1,24 +1,33 @@
# Make sure we're failing even though we pipe to xcpretty # Make sure we're failing even though we pipe to xcpretty
SHELL=/bin/bash -o pipefail SHELL=/bin/bash -o pipefail -o errexit
BUILD_PLATFORM=iOS Simulator,name=iPhone 6,OS=10.0 BUILD_DESTINATION = platform=iOS Simulator,name=iPhone 6,OS=9.3
WORKING_DIR = ./ WORKING_DIR = ./
SCHEME = Signal
XCODE_BUILD = xcrun xcodebuild -workspace $(SCHEME).xcworkspace -scheme $(SCHEME) -sdk iphonesimulator
.PHONY: build test retest clean
default: test default: test
build_signal: test: pod_install retest
pod_install:
cd $(WORKING_DIR) && \ cd $(WORKING_DIR) && \
pod install && \ pod install
xcodebuild -workspace Signal.xcworkspace -scheme Signal \
-sdk iphonesimulator \ build: pod_install
build | xcpretty cd $(WORKING_DIR) && \
$(XCODE_BUILD) build | xcpretty
retest: retest:
cd $(WORKING_DIR) && \ cd $(WORKING_DIR) && \
xcodebuild -workspace Signal.xcworkspace -scheme Signal \ $(XCODE_BUILD) \
-sdk iphonesimulator \ -destination '${BUILD_DESTINATION}' \
-destination 'platform=${BUILD_PLATFORM}' \ build test | xcpretty
test | xcpretty
test: build_signal retest clean:
cd $(WORKING_DIR) && \
$(XCODE_BUILD) \
clean | xcpretty

Loading…
Cancel
Save