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
Variable | Description |
---|---|
HEROKU_APP_NAME | The name of the Heroku app to deploy to |
HEROKU_PRODUCTION_KEY | The API key to use to deploy to Heroku |
Jobs
Job | Description |
---|---|
rubocop | Runs Rubocop |
rails | Runs Rails tests |
rspec | Runs RSpec tests |
herokuDeploy | Deploys 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();