forked from kiwi-bdd/Kiwi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (30 loc) · 1.17 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
36
37
38
39
40
41
SHELL = /bin/bash -e -o pipefail
IPHONE32 = -scheme Kiwi-iOS -destination 'platform=iOS Simulator,name=iPhone 5'
IPHONE64 = -scheme Kiwi-iOS -destination 'platform=iOS Simulator,name=iPhone 6'
MACOSX = -scheme Kiwi-OSX -destination 'generic/platform=OS X'
XCODEBUILD = xcodebuild -project Kiwi.xcodeproj
default: clean ios
bootstrap:
carthage bootstrap --no-use-binaries --platform iphoneos,macosx
clean:
xcodebuild clean
ios:
$(XCODEBUILD) -scheme Kiwi-iOS build
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
pod-lint-library:
pod lib lint --use-libraries
pod-lint-framework:
pod lib lint
ci: bootstrap test-iphone32 test-iphone64 test-macosx pod-lint-library pod-lint-framework