mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
Combine docker:lint and docker:test into one command
This commit is contained in:
@ -2,10 +2,7 @@
|
||||
# Available environment variables:
|
||||
# => COMMIT_HASH used by the discourse_test docker image to load a specific commit of discourse
|
||||
# this can also be set to a branch, e.g. "origin/tests-passed"
|
||||
# => SKIP_LINT if using the discourse_test docker image, this will skip the docker:test task, and only run the docker:lint task
|
||||
# => LINT_ONLY if using the discourse_test docker image, this will skip the docker:lint task, and only run the docker:test task
|
||||
#
|
||||
# See lib/tasks/docker.rake for other available environment variables
|
||||
# See lib/tasks/docker.rake for more information
|
||||
|
||||
def run_or_fail(command)
|
||||
pid = Process.spawn(command)
|
||||
@ -21,5 +18,4 @@ unless ENV['NO_UPDATE']
|
||||
run_or_fail("bundle")
|
||||
end
|
||||
|
||||
run_or_fail("bundle exec rake docker:lint") if !ENV["SKIP_LINT"]
|
||||
run_or_fail("bundle exec rake docker:test") if !ENV["LINT_ONLY"]
|
||||
run_or_fail("bundle exec rake docker:test")
|
||||
|
Reference in New Issue
Block a user