forked from cloudmine/CloudMineSDK-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (33 loc) · 1.14 KB
/
Makefile
File metadata and controls
41 lines (33 loc) · 1.14 KB
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
PRETTY="gem list xcpretty -i"
NOTIFICATION_GROUP='xcodebuild'
NOTIFICATION_TITLE='iOS Lib Tests'
NOTIFICATION_MESSAGE='Tests Finished'
NOTIFICATION_ACTIVATE='com.apple.Terminal'
TERMINAL_NOTIFIER_INSTALLED=$(shell terminal-notifier | grep 'Usage')
NOTIFICATION_ERROR_MSG='You do not have terminal-notifier installed! Run `[sudo] gem install terminal-notifier` to get notifications from this script!'
# Default
build: clean
xcodebuild -workspace cm-ios.xcworkspace \
-scheme libcloudmine \
-destination 'platform=iOS Simulator,name=iPhone 5s,OS=8.1' \
2>&1 \
build | xcpretty -c && exit ${PIPESTATUS[0]}
test:
(xcodebuild -workspace cm-ios.xcworkspace \
-scheme libcloudmine \
-destination 'platform=iOS Simulator,name=iPhone 5s,OS=8.1' \
2>&1 \
test || exit 1) | xcpretty -c && exit ${PIPESTATUS[0]}
jenkins:
xcodebuild -workspace cm-ios.xcworkspace \
-scheme libcloudmine \
-destination 'platform=iOS Simulator,name=iPhone Retina (4-inch)' \
test
clean:
xcodebuild -workspace cm-ios.xcworkspace \
-scheme libcloudmine \
clean | xcpretty -c && exit ${PIPESTATUS[0]}
cov:
./ios/XcodeCoverage/cleancov
$(MAKE) test
./ios/XcodeCoverage/getcov