forked from erikdoe/ocmock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (20 loc) · 830 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# This makefile is mainly intended for use on the CI server (Travis). It
# requires xcpretty to be installed.
# If you are trying to build a release locally consider using the build.rb
# script in the Tools directory instead.
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"
ci: 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