blob: 977e6332fc821802e8d7017ba6c75e8289325a0b [file] [log] [blame]
BUILD_DIR = OBJROOT="$(CURDIR)/../build" SYMROOT="$(CURDIR)/build"
SHELL = /bin/bash -e -o pipefail
IPHONE = -scheme OCMockLib -sdk iphonesimulator -destination 'name=iPhone Retina (4-inch)' $(BUILD_DIR)
MACOSX = -scheme OCMock -sdk macosx $(BUILD_DIR)
XCODEBUILD = xcodebuild -project "$(CURDIR)/Source/OCMock.xcodeproj"
default: clean test
clean:
$(XCODEBUILD) clean
rm -rf "$(CURDIR)/build"
test: test-iphone test-macosx
test-iphone:
@echo "Running iPhone tests..."
$(XCODEBUILD) $(IPHONE) test | xcpretty -c
test-macosx:
@echo "Running OS X tests..."
$(XCODEBUILD) $(MACOSX) test | xcpretty -c