mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 12:13:58 -06:00
DEV: prints timestamp at every docker:test commands (#7628)
This commit is contained in:
parent
c920f9d137
commit
5d47d1833b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user