class ContinuousIntegration

Ruby on Rails edge

Since v8.1.3.1

Available in: v8.1.3.1 edge

Provides a DSL for declaring a continuous integration workflow that can be run either locally or in the cloud. Each step is timed, reports success/error, and is aggregated into a collective report that reports total runtime, as well as whether the entire run was successful or not.

Example:

“‘ ActiveSupport::ContinuousIntegration.run do

step "Setup", "bin/setup --skip-server"
step "Style: Ruby", "bin/rubocop"
step "Security: Gem audit", "bin/bundler-audit"
step "Tests: Rails", "bin/rails test test:system"

if success?
  step "Signoff: Ready for merge and deploy", "gh signoff"
else
  failure "Skipping signoff; CI failed.", "Fix the issues and try again."
end

end “‘

Starting with Rails 8.1, a default bin/ci and config/ci.rb file are created to provide out-of-the-box CI.

Inherits from

Object

Namespace

Classes

Constants

Attributes

Methods (defined here)

Methods (inherited)

From Object (17)
From ActiveSupport::NumericWithFormat (2)

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close