Skip to main content

Ruby

Running the pre-built Ruby pipeline directly

Run the following command to run the pre-built Ruby pipeline without having to initialize a project:

fluentci run ruby_pipeline

Add Ruby Pipeline to your project

Run the following command to add Ruby pipeline to your project:

fluentci init -t ruby

This will create a .fluentci directory in your project, feel free to customize the pipeline for your needs. You can then run the following command to start the pipeline:

fluentci run .

Environment variables

VariableDescription
HEROKU_APP_NAMEThe name of the Heroku app to deploy to
HEROKU_PRODUCTION_KEYThe API key to use to deploy to Heroku

Jobs

JobDescription
rubocopRuns Rubocop
railsRuns Rails tests
rspecRuns RSpec tests
herokuDeployDeploys to Heroku

Programmatic usage

You can also use this pipeline programmatically:

import { rubocop, rails, rspec } from "https://pkg.fluentci.io/[email protected]/mod.ts";

await rubocop();
await rails();
await rspec();