forked from frizzle/rabbitmq-objc-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
59 lines (43 loc) · 1.87 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
iOS_VERSION := 15.4
SCHEME := "RMQClient"
RABBITMQCTL := /usr/local/sbin/rabbitmqctl
RABBITMQ_PLUGINS := /usr/local/sbin/rabbitmq-plugins
tests: tests_iOS tests_macos lint
tests_ios: tests_iOS
tests_macos: tests_MacOS
tests_iOS: test_dependencies
set -o pipefail && \
xcodebuild test \
-project RMQClient.xcodeproj \
-scheme "${SCHEME}" \
-destination 'platform=iOS Simulator,name=iPhone 13,OS=$(iOS_VERSION)' | \
xcpretty
tests_MacOS: test_dependencies
set -o pipefail && \
xcodebuild test \
-project RMQClient.xcodeproj \
-scheme "${SCHEME}" \
-destination 'platform=OS X,arch=x86_64' | \
xcpretty
tests_with_tls:
${MAKE} tests_ios SCHEME="RMQClient with TLS tests"
${MAKE} tests_macos SCHEME="RMQClient with TLS tests"
${MAKE} lint
test_dependencies: bootstrap
gem list -i xcpretty || gem install xcpretty
bootstrap:
bin/bootstrap-if-needed
set_up_test_vhosts:
$(RABBITMQCTL) add_vhost "vhost/with/a/few/slashes"
set_up_test_users:
$(RABBITMQCTL) add_user "O=client,CN=guest" bunnies
$(RABBITMQCTL) set_permissions "O=client,CN=guest" ".*" ".*" ".*"
before_build:
$(RABBITMQ_PLUGINS) enable rabbitmq_management
$(RABBITMQCTL) eval 'supervisor2:terminate_child(rabbit_mgmt_sup_sup, rabbit_mgmt_sup), application:set_env(rabbitmq_management, sample_retention_policies, [{global, [{605, 1}]}, {basic, [{605, 1}]}, {detailed, [{10, 1}]}]), rabbit_mgmt_sup_sup:start_child().'
$(RABBITMQCTL) eval 'supervisor2:terminate_child(rabbit_mgmt_agent_sup_sup, rabbit_mgmt_agent_sup), application:set_env(rabbitmq_management_agent, sample_retention_policies, [{global, [{605, 1}]}, {basic, [{605, 1}]}, {detailed, [{10, 1}]}]), rabbit_mgmt_agent_sup_sup:start_child().'
lint:
swiftlint
licenses:
bin/add-license rb '#' license-header-ruby.txt codegen/ && \
bin/add-license m,h,swift '//' license-header.txt RMQClient/ RMQClientTests/ RMQClientIntegrationTests/