Skip to content

Instantly share code, notes, and snippets.

@mfilipe
Created December 5, 2022 17:39
Show Gist options
  • Save mfilipe/f95af53a7e903601657f9e98fc8960fd to your computer and use it in GitHub Desktop.
Save mfilipe/f95af53a7e903601657f9e98fc8960fd to your computer and use it in GitHub Desktop.
tasks["Umbrella"] = {
reportTime("Umbrella Rubocop") {
echo "Run rubocop for umbrella and component generator files"
dockerRunApp(compose.fullImageName(), "bin/rubocop --parallel --config .rubocop_ci.yml")
}
reportTime("Umbrella Tests") {
dockerRunApp(
compose.fullImageName(),
"bash -lc 'bin/schema && bin/test && bin/yard doc'",
"--env RAILS_ENV=test --env DATABASE_NAME=umbrella --env REDIS_LOGICAL_DB_NAME=${testComponentNames.size() + 2}"
)
}
}
tasks["Component Generators"] = {
reportTime("Component Generators") {
dockerRunApp(compose.fullImageName(),
'generators/component.sh engine test_engine',
"--mount type=bind,source=${pwd()}/config,destination=/home/app/src/config,readonly --env ALL_REQUIREMENTS=yes --env ADDITIONAL_FLAGS=-f --env DATABASE_NAME=test_engine",
true)
dockerRunApp(compose.fullImageName(),
'generators/component.sh gem test_gem',
"",
true)
dockerRunApp(compose.fullImageName(),
'generators/component.sh node test_node',
"",
true)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment