mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 21:19:41 -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
|
# 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)
|
def run_or_fail(command)
|
||||||
|
log(command)
|
||||||
pid = Process.spawn(command)
|
pid = Process.spawn(command)
|
||||||
Process.wait(pid)
|
Process.wait(pid)
|
||||||
$?.exitstatus == 0
|
$?.exitstatus == 0
|
||||||
@ -47,6 +48,10 @@ def run_or_fail_prettier(*patterns)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def log(msg)
|
||||||
|
STDERR.puts "#{Time.now.iso8601}: #{msg}"
|
||||||
|
end
|
||||||
|
|
||||||
desc 'Run all tests (JS and code in a standalone environment)'
|
desc 'Run all tests (JS and code in a standalone environment)'
|
||||||
task 'docker:test' do
|
task 'docker:test' do
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user