DEV: prints timestamp at every docker:test commands (#7628)

This commit is contained in:
Joffrey JAFFEUX 2019-05-29 12:20:33 +02:00 committed by GitHub
parent c920f9d137
commit 5d47d1833b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,6 +32,7 @@
# docker run -e SKIP_CORE=1 SINGLE_PLUGIN='my-awesome-plugin' -v $(pwd)/my-awesome-plugin:/var/www/discourse/plugins/my-awesome-plugin discourse/discourse_test:release
def run_or_fail(command)
log(command)
pid = Process.spawn(command)
Process.wait(pid)
$?.exitstatus == 0
@ -47,6 +48,10 @@ def run_or_fail_prettier(*patterns)
end
end
def log(msg)
STDERR.puts "#{Time.now.iso8601}: #{msg}"
end
desc 'Run all tests (JS and code in a standalone environment)'
task 'docker:test' do
begin