|
2 | 2 | # Compiler flags.
|
3 | 3 | # --------------------------------------------------------------------
|
4 | 4 |
|
5 |
| -# FIXME: We copy Erlang.mk default flags here: rabbitmq-build.mk is |
6 |
| -# loaded as a plugin, so before those variables are defined. And because |
7 |
| -# Erlang.mk uses '?=', the flags we set here override the default set. |
8 |
| -# |
9 |
| -# See: https://github.com/ninenines/erlang.mk/issues/502 |
10 |
| - |
11 |
| -WARNING_OPTS += +debug_info \ |
12 |
| - +warn_export_vars \ |
13 |
| - +warn_shadow_vars \ |
14 |
| - +warn_obsolete_guard |
15 |
| -ERLC_OPTS += -Werror $(WARNING_OPTS) |
16 |
| -TEST_ERLC_OPTS += +nowarn_export_all $(WARNING_OPTS) |
| 5 | +TEST_ERLC_OPTS += +nowarn_export_all |
17 | 6 |
|
18 | 7 | define compare_version
|
19 | 8 | $(shell awk 'BEGIN {
|
|
42 | 31 | # Push our compilation options to both the normal and test ERLC_OPTS.
|
43 | 32 | ERLC_OPTS += $(RMQ_ERLC_OPTS)
|
44 | 33 | TEST_ERLC_OPTS += $(RMQ_ERLC_OPTS)
|
45 |
| - |
46 |
| -# -------------------------------------------------------------------- |
47 |
| -# Common Test flags. |
48 |
| -# -------------------------------------------------------------------- |
49 |
| - |
50 |
| -# Enable the following common_test hooks on Travis and Concourse: |
51 |
| -# |
52 |
| -# cth_fail_fast |
53 |
| -# This hook will make sure the first failure puts an end to the |
54 |
| -# testsuites; ie. all remaining tests are skipped. |
55 |
| -# |
56 |
| -# cth_styledout |
57 |
| -# This hook will change the output of common_test to something more |
58 |
| -# concise and colored. |
59 |
| -# |
60 |
| -# On Jenkins, in addition to those common_test hooks, enable JUnit-like |
61 |
| -# report. Jenkins parses those reports so the results can be browsed |
62 |
| -# from its UI. Furthermore, it displays a graph showing evolution of the |
63 |
| -# results over time. |
64 |
| - |
65 |
| -CT_HOOKS ?= |
66 |
| - |
67 |
| -RMQ_CT_HOOKS = cth_fail_fast cth_styledout |
68 |
| -ifdef TRAVIS |
69 |
| -CT_HOOKS += $(RMQ_CT_HOOKS) |
70 |
| -TEST_DEPS += $(RMQ_CT_HOOKS) |
71 |
| -endif |
72 |
| -ifdef CONCOURSE |
73 |
| -CT_HOOKS += $(RMQ_CT_HOOKS) |
74 |
| -TEST_DEPS += $(RMQ_CT_HOOKS) |
75 |
| -endif |
76 |
| -ifdef JENKINS_HOME |
77 |
| -CT_HOOKS += cth_surefire $(RMQ_CT_HOOKS) |
78 |
| -TEST_DEPS += $(RMQ_CT_HOOKS) |
79 |
| -endif |
80 |
| - |
81 |
| -dep_cth_fail_fast = git https://github.com/rabbitmq/cth_fail_fast.git master |
82 |
| -dep_cth_styledout = git https://github.com/rabbitmq/cth_styledout.git master |
83 |
| - |
84 |
| -CT_HOOKS_PARAM_VALUE = $(patsubst %,and %,$(CT_HOOKS)) |
85 |
| -CT_OPTS += -ct_hooks $(wordlist 2,$(words $(CT_HOOKS_PARAM_VALUE)),$(CT_HOOKS_PARAM_VALUE)) |
86 |
| - |
87 |
| -# Disable most messages on Travis because it might exceed the limit |
88 |
| -# set by Travis. |
89 |
| -# |
90 |
| -# On Concourse, we keep the default verbosity. With Erlang 19.2+, the |
91 |
| -# cth_styledout hook will change the output to something concise and all |
92 |
| -# messages are available in in HTML reports. With Erlang up-to 19.1, |
93 |
| -# stdout will be flooded with messages, but we'll live with that. |
94 |
| -# |
95 |
| -# CAUTION: All arguments after -erl_args are passed to the emulator and |
96 |
| -# common_test doesn't interpret them! Therefore, all common_test flags |
97 |
| -# *MUST* appear before. |
98 |
| - |
99 |
| -CT_QUIET_FLAGS = -verbosity 50 \ |
100 |
| - -erl_args \ |
101 |
| - -kernel error_logger silent |
102 |
| - |
103 |
| -ifdef TRAVIS |
104 |
| -CT_OPTS += $(CT_QUIET_FLAGS) |
105 |
| -endif |
106 |
| - |
107 |
| -# On CI, set $RABBITMQ_CT_SKIP_AS_ERROR so that any skipped |
108 |
| -# testsuite/testgroup/testcase is considered an error. |
109 |
| - |
110 |
| -ifdef TRAVIS |
111 |
| -export RABBITMQ_CT_SKIP_AS_ERROR = true |
112 |
| -endif |
113 |
| -ifdef CONCOURSE |
114 |
| -export RABBITMQ_CT_SKIP_AS_ERROR = true |
115 |
| -endif |
116 |
| -ifdef JENKINS_HOME |
117 |
| -export RABBITMQ_CT_SKIP_AS_ERROR = true |
118 |
| -endif |
0 commit comments