You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Maps CI environment variables to the values they take when the CI provider is running in debug/verbose mode. When any of these match, we enable verbose output automatically.
49
+
#
50
+
# - `RUNNER_DEBUG` is set by GitHub Actions when a workflow is re-run with "Enable debug logging".
51
+
# - `CI_DEBUG_TRACE` is set by GitLab CI when debug logging (tracing) is enabled.
52
+
# - `BUILDKITE_AGENT_DEBUG` is set by Buildkite when agent debug is enabled.
53
+
# - `SYSTEM_DEBUG` is set by Azure Pipelines when the `system.debug` variable is enabled.
54
+
# - `SUS_VERBOSE` can be set explicitly to enable verbose output regardless of the CI provider.
55
+
DEBUG_ENVIRONMENT={
56
+
"SUS_VERBOSE"=>"true",
57
+
"RUNNER_DEBUG"=>"1",
58
+
"CI_DEBUG_TRACE"=>"true",
59
+
"BUILDKITE_AGENT_DEBUG"=>"true",
60
+
"SYSTEM_DEBUG"=>"true",
61
+
}
62
+
63
+
# Whether verbose output should be enabled based on the environment.
64
+
#
65
+
# Detects CI environments that request debug logging, e.g. GitHub Actions
66
+
# sets `RUNNER_DEBUG=1` when a workflow is re-run with "Enable debug logging".
67
+
#
68
+
# @parameter env [Hash] The environment to inspect.
69
+
# @returns [Boolean] Whether verbose output should be enabled.
70
+
defself.verbose_from_environment?(env=ENV)
71
+
DEBUG_ENVIRONMENT.any?do |key,value|
72
+
env[key] == value
73
+
end
74
+
end
75
+
47
76
# Initialize a new Config instance.
48
77
# @parameter root [String] The root directory for the project.
49
78
# @parameter paths [Array] Optional paths to specific test files.
0 commit comments