Merge pull request #5066 from davidtaylorhq/docker-lint-changes

Docker lint SINGLE_PLUGIN
This commit is contained in:
Guo Xiang Tan
2017-08-23 09:56:15 +09:00
committed by GitHub
2 changed files with 80 additions and 68 deletions

View File

@@ -1,3 +1,9 @@
# 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"
# See lib/tasks/docker.rake for more information
def run_or_fail(command)
pid = Process.spawn(command)
Process.wait(pid)
@@ -12,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")