Skip to content
This repository was archived by the owner on Nov 17, 2020. It is now read-only.

Commit be18e6d

Browse files
committed
Merge branch 'stable'
2 parents b361242 + 6ee312c commit be18e6d

File tree

1 file changed

+39
-15
lines changed

1 file changed

+39
-15
lines changed

mk/rabbitmq-build.mk

Lines changed: 39 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -74,24 +74,40 @@ ERLC_OPTS += $(RMQ_ERLC_OPTS)
7474
TEST_ERLC_OPTS += $(RMQ_ERLC_OPTS)
7575

7676
# --------------------------------------------------------------------
77-
# Common test flags.
77+
# Common Test flags.
7878
# --------------------------------------------------------------------
7979

80-
# Enable the cth_fail_fast common_test hook on Concourse.
80+
# Enable the following common_test hooks on Travis and Concourse:
8181
#
82-
# This hook will make sure the first failure puts an end to the
83-
# testsuites; ie. all remaining tests are skipped.
82+
# cth_fail_fast
83+
# This hook will make sure the first failure puts an end to the
84+
# testsuites; ie. all remaining tests are skipped.
85+
#
86+
# cth_styledout
87+
# This hook will change the output of common_test to something more
88+
# consise and colored.
8489

85-
ifdef CONCOURSE
86-
TEST_DEPS += cth_fail_fast
90+
CTH_DEPS = cth_fail_fast cth_styledout
8791
dep_cth_fail_fast = git https://github.com/rabbitmq/cth_fail_fast.git master
88-
CT_OPTS += -ct_hooks cth_fail_fast
92+
dep_cth_styledout = git https://github.com/rabbitmq/cth_styledout.git master
93+
CTH_OPTS = -ct_hooks cth_fail_fast and cth_styledout
94+
95+
ifdef TRAVIS
96+
TEST_DEPS += $(CTH_DEPS)
97+
CT_OPTS += $(CTH_OPTS)
98+
endif
99+
ifdef CONCOURSE
100+
TEST_DEPS += $(CTH_DEPS)
101+
CT_OPTS += $(CTH_OPTS)
89102
endif
90103

91-
# Disable most messages on Travis and Concourse.
104+
# Disable most messages on Travis because it might exceed the limit
105+
# set by Travis.
92106
#
93-
# On CI, set $RABBITMQ_CT_SKIP_AS_ERROR so that any skipped
94-
# testsuite/testgroup/testcase is considered an error.
107+
# On Concourse, we keep the default verbosity. With Erlang 19.2+, the
108+
# cth_styledout hook will change the output to something concise and all
109+
# messages are available in in HTML reports. With Erlang up-to 19.1,
110+
# stdout will be flooded with messages, but we'll live with that.
95111
#
96112
# CAUTION: All arguments after -erl_args are passed to the emulator and
97113
# common_test doesn't interpret them! Therefore, all common_test flags
@@ -103,17 +119,25 @@ CT_QUIET_FLAGS = -verbosity 50 \
103119

104120
ifdef TRAVIS
105121
CT_OPTS += $(CT_QUIET_FLAGS)
106-
export RABBITMQ_CT_SKIP_AS_ERROR = true
107-
endif
108-
ifdef CONCOURSE
109-
CT_OPTS += $(CT_QUIET_FLAGS)
110-
export RABBITMQ_CT_SKIP_AS_ERROR = true
111122
endif
112123

113124
# Enable JUnit-like report on Jenkins. Jenkins parses those reports so
114125
# the results can be browsed from its UI. Furthermore, it displays a
115126
# graph showing evolution of the results over time.
127+
116128
ifdef JENKINS_HOME
117129
CT_OPTS += -ct_hooks cth_surefire
130+
endif
131+
132+
# On CI, set $RABBITMQ_CT_SKIP_AS_ERROR so that any skipped
133+
# testsuite/testgroup/testcase is considered an error.
134+
135+
ifdef TRAVIS
136+
export RABBITMQ_CT_SKIP_AS_ERROR = true
137+
endif
138+
ifdef CONCOURSE
139+
export RABBITMQ_CT_SKIP_AS_ERROR = true
140+
endif
141+
ifdef JENKINS_HOME
118142
export RABBITMQ_CT_SKIP_AS_ERROR = true
119143
endif

0 commit comments

Comments
 (0)