Something went wrong. Try again.
A collection of +180 reusable WebAssembly modules for building composable CI/CD pipelines with FluentCI fluentci.io/modules
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465-- Generated by Gleam CI helpers.module CI.Component (run, version, upload, done) where
import Preludeimport CI.Contract as Contractimport Data.Maybe (Maybe)import Effect (Effect)import CI.ModuleDependencies as Dependenciesimport CI.CLI as Native
-- | Execute arbitrary literal CLI arguments.-- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".".-- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist.-- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool.-- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000.-- | @param artifacts Output artifacts to collect as NAME=PATH entries; names must be unique. Comma-separated values; whitespace is trimmed and empty entries are rejected. CSV quotes preserve literal commas.-- | @param arguments Literal native CLI argument tokens, passed without shell expansion. Comma-separated values; whitespace is trimmed and empty entries are rejected. CSV quotes preserve literal commas.run :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, arguments :: String } -> Effect Contract.ExecutionResultrun args = do json <- Contract.csvFields [ "artifacts", "arguments" ] (Contract.encodeInput args) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "coveralls" "run" json
-- | Print the CLI version.-- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".".-- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist.-- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool.-- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000.-- | @param artifacts Output artifacts to collect as NAME=PATH entries; names must be unique. Comma-separated values; whitespace is trimmed and empty entries are rejected. CSV quotes preserve literal commas.version :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String } -> Effect Contract.ExecutionResultversion args = do json <- Contract.csvFields [ "artifacts" ] (Contract.encodeInput args) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "coveralls" "version" json
-- | Upload coverage reports using the universal Coveralls reporter.-- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".".-- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist.-- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool.-- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000.-- | @param artifacts Output artifacts to collect as NAME=PATH entries; names must be unique. Comma-separated values; whitespace is trimmed and empty entries are rejected. CSV quotes preserve literal commas.-- | @param format Format supplied to the coveralls upload operation. Allowed values: lcov, simplecov, cobertura, jacoco, gcov, luacov, golang, python.-- | @param basePath Base Path supplied to the coveralls upload operation.-- | @param jobFlag Job Flag supplied to the coveralls upload operation.-- | @param buildNumber Build Number supplied to the coveralls upload operation.-- | @param parallel Maximum number of concurrent build or test jobs.-- | @param dryRun Dry Run supplied to the coveralls upload operation.-- | @param files Files selected for the native operation; paths are passed literally without shell expansion. Comma-separated values; whitespace is trimmed and empty entries are rejected. CSV quotes preserve literal commas.upload :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, format :: Maybe String, basePath :: Maybe String, jobFlag :: Maybe String, buildNumber :: Maybe String, parallel :: Maybe Boolean, dryRun :: Maybe Boolean, files :: String } -> Effect Contract.ExecutionResultupload args = do json <- Contract.csvFields [ "artifacts", "files" ] (Contract.encodeInput args) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "coveralls" "upload" json
-- | Close a parallel coverage build.-- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".".-- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist.-- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool.-- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000.-- | @param artifacts Output artifacts to collect as NAME=PATH entries; names must be unique. Comma-separated values; whitespace is trimmed and empty entries are rejected. CSV quotes preserve literal commas.-- | @param buildNumber Build Number supplied to the coveralls done operation.-- | @param carryforward Carryforward supplied to the coveralls done operation.-- | @param dryRun Dry Run supplied to the coveralls done operation.done :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, buildNumber :: String, carryforward :: Maybe String, dryRun :: Maybe Boolean } -> Effect Contract.ExecutionResultdone args = do json <- Contract.csvFields [ "artifacts" ] (Contract.encodeInput args) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "coveralls" "done" json