From 6e7488178fe3589ffa59d58c90b8079712fdf23a Mon Sep 17 00:00:00 2001 From: David Taylor Date: Sat, 19 Aug 2017 11:10:17 +0100 Subject: [PATCH] Add documentation to docker_test.rb --- script/docker_test.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/script/docker_test.rb b/script/docker_test.rb index 2d5710bb0ea..ca31564cbf8 100644 --- a/script/docker_test.rb +++ b/script/docker_test.rb @@ -1,3 +1,12 @@ +# This script is run in the discourse_test docker image +# 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 + def run_or_fail(command) pid = Process.spawn(command) Process.wait(pid)