aboutsummaryrefslogtreecommitdiffstats
path: root/wercker.yml
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2019-05-08 16:25:25 +0900
committerTakashi Kokubun <takashikkbn@gmail.com>2019-05-08 16:26:01 +0900
commit60869ebd005dc21e03e5f3cf9b517ff761781e80 (patch)
treec77758bde9a36a5209cbf4e7f0613d4925361cf9 /wercker.yml
parentd736080c8b8731fe8e7be99893eea35b67cbbc0e (diff)
downloadruby-60869ebd005dc21e03e5f3cf9b517ff761781e80.tar.gz
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
Diffstat (limited to 'wercker.yml')
-rw-r--r--wercker.yml17
1 files changed, 16 insertions, 1 deletions
diff --git a/wercker.yml b/wercker.yml
index 08e28448c8..bfd13112c0 100644
--- a/wercker.yml
+++ b/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: