-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
40 lines (26 loc) · 922 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
37
38
39
40
DEFAULT_TASK=xcodebuild -workspace Sense.xcworkspace -scheme Sense
CI_TASK=$(DEFAULT_TASK) -sdk iphonesimulator -destination "platform=iOS Simulator,name=iPhone 6,OS=9.0"
.PHONY:
default: build
bootstrap:
gem install xcpretty ovaltine shenzhen deliver --quiet --no-ri --no-rdoc
build:
$(DEFAULT_TASK) | xcpretty -c
clean:
$(DEFAULT_TASK) clean | xcpretty -c
deploy: ipa upload
test: test_ios9
test_ios9:
$(DEFAULT_TASK) -sdk iphonesimulator9.0 test | xcpretty -c
ci_deps:
gem install xcpretty --no-ri --no-rdoc -v 0.1.12
ci:
set -o pipefail && $(CI_TASK) test | tee $(CIRCLE_ARTIFACTS)/xcodebuild.log | xcpretty --color --report junit --output $(CIRCLE_TEST_REPORTS)/xcode/results.xml
ipa:
ipa build
upload:
deliver testflight
upload_dsym:
./Scripts/upload_dsym ${ARGS}
generate:
ovaltine -p Sense.xcodeproj -o SleepModel/ --prefix HEM --auto-add --auto-replace --copyright 'Hello Inc' SleepModel/