Created
December 5, 2022 17:39
-
-
Save mfilipe/f95af53a7e903601657f9e98fc8960fd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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