mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Wrap mjit-debug-on-fail for Wercker failure
for debugging failure like https://app.wercker.com/ruby/ruby/runs/mjit-test1/5cc98936ab79a30008eb86fa?step=5cc990d73d81fb0007bb04c3 https://app.wercker.com/ruby/ruby/runs/mjit-test1/5cd18efa23fcb70008ddfd45?step=5cd1908603f4460007076c5a
This commit is contained in:
parent
d736080c8b
commit
60869ebd00
1 changed files with 16 additions and 1 deletions
17
wercker.yml
17
wercker.yml
|
@ -23,6 +23,21 @@ mjit-test1:
|
|||
- script:
|
||||
name: make all install
|
||||
code: /usr/bin/sudo -H -u test -- make -j$(nproc) all install
|
||||
- script:
|
||||
name: install mjit-debug-on-fail
|
||||
code: |
|
||||
cat <<'EOS' > /usr/local/bin/mjit-debug-on-fail
|
||||
#!/bin/bash
|
||||
if ! $@; then
|
||||
for f in $(find /tmp -type f -name "ruby_mjit*.c"); do
|
||||
echo "[${f}]==="
|
||||
cat "$f"
|
||||
echo "==="
|
||||
echo
|
||||
done
|
||||
exit 1
|
||||
fi
|
||||
EOS
|
||||
|
||||
# --jit
|
||||
- script:
|
||||
|
@ -33,7 +48,7 @@ mjit-test1:
|
|||
code: /usr/bin/sudo -H -u test -- make test-spec RUN_OPTS="--disable-gems --jit --jit-warnings"
|
||||
- script:
|
||||
name: make test-all (JIT)
|
||||
code: /usr/bin/sudo -H -u test -- make test-all RUN_OPTS="--disable-gems --jit --jit-warnings" TESTOPTS="-v --color=never --job-status=normal --longest 10 --subprocess-timeout-scale=3.0 --excludes=test/excludes/_wercker/jit"
|
||||
code: /usr/local/bin/mjit-debug-on-fail /usr/bin/sudo -H -u test -- make test-all RUN_OPTS="--disable-gems --jit-verbose=1 --jit-save-temps --jit-warnings" TESTOPTS="-v --color=never --job-status=normal --longest 10 --subprocess-timeout-scale=3.0 --excludes=test/excludes/_wercker/jit"
|
||||
|
||||
# --jit-wait (test, test-spec)
|
||||
- script:
|
||||
|
|
Loading…
Add table
Reference in a new issue