forked from erikdoe/ocmock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (25 loc) · 1.01 KB
/
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
29
30
31
32
33
34
35
# 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
IOS32 = -scheme OCMockLib -sdk iphonesimulator -destination 'name=iPhone 5' $(BUILD_DIR)
IOS64 = -scheme OCMockLib -sdk iphonesimulator -destination 'name=iPhone 5s' $(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-ios test-macosx
test-ios: test-ios32 test-ios64
test-ios32:
@echo "Running 32-bit iOS tests..."
$(XCODEBUILD) $(IOS32) test | xcpretty -c
test-ios64:
@echo "Running 64-bit iOS tests..."
$(XCODEBUILD) $(IOS64) test | xcpretty -c
test-macosx:
@echo "Running OS X tests..."
$(XCODEBUILD) $(MACOSX) test | xcpretty -c