forked from calabash/DeviceAgent.iOS
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
70 lines (60 loc) · 1.62 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
all:
$(MAKE) clean
$(MAKE) app-agent
$(MAKE) ipa-agent
clean:
rm -rf build
rm -rf Products
# Builds the CBX-Runner.ipa and CBXAppStub.ipa and stages them
# to ./Products/ipa.
#
# Xcode Product > Build For > Testing stages ipas to the same directory.
#
# Respects the CODE_SIGN_IDENTITY variable, which might be necessary
# if you have multiple Developer accounts.
# $ CODE_SIGN_IDENTITY="iPhone Developer: Joshua Moody (8<snip>F)" make ipa
ipa-agent:
bin/make/ipa-agent.sh
# Builds the CBX-Runner.app and CBXAppStub.app and stages them
# to ./Products/ipa.
#
# Xcode Product > Build For > Testing stages apps to the same directory.
app-agent:
bin/make/app-agent.sh
# Runs the Server (XCTest) unit tests.
#
# If you encounter a build error, use:
#
# $ XCPRETTY=0 make unit
#
# to diagnose.
#
# When running with xcpretty, a junit style report can be found in:
#
# build/reports/junit.xml
#
# Warnings are treated as errors. GCC_TREAT_WARNINGS_AS_ERRORS=YES
unit-tests:
bin/make/unit-tests.sh "${SIM_NAME}" "${SIM_OS_VERSION}"
ui-tests:
bundle update
bundle exec bin/make/ui-tests.rb
alerts-ui-tests:
bundle update
bundle exec bin/make/alerts-ui-tests.rb
# Makes the TestApp.app
test-app:
bin/make/test-app.sh
# Makes the TestApp.ipa
test-ipa:
bin/make/test-ipa.sh
# dylibs for testing dylib injection
gemuse:
bin/make/gemuse-libs.sh
# update springboard alerts
# example of custom sim dir
# make update-alerts XCODE_CORE_SIM_DIR="/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS\ 10.3.simruntime"
update-alerts:
cd tools/springboard-alerts && \
bundle install && \
bundle exec ruby update-alerts.rb "$(XCODE_CORE_SIM_DIR)"