mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
wercker.yml: Commit MJIT debug logs to another repository
because too-large Wercker output is truncated. ruby/mjit-debug is a private repository for now, because the person fixing it is likely to be me or another committer.
This commit is contained in:
parent
4fe908c164
commit
187ef00a41
1 changed files with 16 additions and 6 deletions
22
wercker.yml
22
wercker.yml
|
@ -29,16 +29,26 @@ mjit-test1:
|
|||
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
|
||||
git clone --depth=1 git@github.com:ruby/mjit-debug
|
||||
cd mjit-debug
|
||||
|
||||
debug_dir="$(date '+%F_%T')"
|
||||
mkdir "$debug_dir"
|
||||
cp /tmp/_ruby_mjit*.c "$debug_dir"
|
||||
|
||||
git add "$debug_dir"
|
||||
git commit -m "Debug ${debug_dir}: ${WERCKER_BUILD_URL}"
|
||||
git push origin master
|
||||
exit 1
|
||||
fi
|
||||
EOS
|
||||
chmod +x /usr/local/bin/mjit-debug-on-fail
|
||||
# git push access to ruby/mjit-debug (private repository)
|
||||
- add-ssh-key:
|
||||
keyname: MJIT_DEBUG
|
||||
host: github.com
|
||||
- add-to-known_hosts:
|
||||
hostname: github.com
|
||||
|
||||
# --jit
|
||||
- script:
|
||||
|
|
Loading…
Reference in a new issue