forked from kiwi-bdd/Kiwi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (27 loc) · 983 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
29
30
31
32
33
34
35
36
SHELL = /bin/bash -e -o pipefail
IPHONE32 = -scheme Kiwi -sdk iphonesimulator -destination 'name=iPhone 4s'
IPHONE64 = -scheme Kiwi -sdk iphonesimulator -destination 'name=iPhone 6'
MACOSX = -scheme Kiwi-OSX -sdk macosx
XCODEBUILD = xcodebuild -project Kiwi.xcodeproj
default: clean ios
clean:
xcodebuild clean
rm -rf output
ios:
$(XCODEBUILD) -scheme Kiwi-iOS build
install:
$(XCODEBUILD) -scheme Kiwi-iOS install
test: test-iphone32 test-iphone64 test-macosx
test-iphone32:
@echo "Running 32 bit iPhone tests..."
$(XCODEBUILD) $(IPHONE32) test | tee xcodebuild.log | xcpretty -c
ruby test_suite_configuration.rb xcodebuild.log
test-iphone64:
@echo "Running 64 bit iPhone tests..."
$(XCODEBUILD) $(IPHONE64) test | tee xcodebuild.log | xcpretty -c
ruby test_suite_configuration.rb xcodebuild.log
test-macosx:
@echo "Running OS X tests..."
$(XCODEBUILD) $(MACOSX) test | tee xcodebuild.log | xcpretty -c
ruby test_suite_configuration.rb xcodebuild.log
ci: test