2018-10-22 20:19:53 -04:00
|
|
|
box: k0kubun/mjit-test # move this to some ruby/xxx repository
|
|
|
|
no-response-timeout: 30
|
|
|
|
command-timeout: 60
|
|
|
|
build:
|
|
|
|
steps:
|
|
|
|
- script:
|
|
|
|
name: workaround ipv6 localhost
|
|
|
|
code: ruby -e "hosts = File.read('/etc/hosts').sub(/^::1\s*localhost.*$/, ''); File.write('/etc/hosts', hosts)"
|
|
|
|
- script:
|
|
|
|
name: show last commit
|
|
|
|
code: git log -n1
|
2018-10-22 20:27:08 -04:00
|
|
|
|
|
|
|
# Pending for https://app.wercker.com/ruby/ruby/runs/build/5bce69356326620007fbaa5c?step=5bce697cacc4510006d30a47
|
|
|
|
# I'll fix and enable this later.
|
|
|
|
|
|
|
|
# - script:
|
|
|
|
# name: configure
|
|
|
|
# code: /usr/bin/sudo -H -u test -- bash -c 'autoconf && ./configure --disable-install-doc --prefix=/tmp/ruby-prefix'
|
|
|
|
# - script:
|
|
|
|
# name: make all install
|
|
|
|
# code: /usr/bin/sudo -H -u test -- bash -c 'make -j$(nproc) all install'
|
|
|
|
# - script:
|
|
|
|
# name: make test (JIT)
|
|
|
|
# code: /usr/bin/sudo -H -u test -- bash -c 'make test RUN_OPTS="--disable-gems --jit-wait --jit-warnings"'
|
|
|
|
# - script:
|
|
|
|
# name: make test-all (JIT)
|
|
|
|
# code: /usr/bin/sudo -H -u test -- bash -c 'make test-all TESTOPTS="--color=never --job-status=normal" RUN_OPTS="--disable-gems --jit-wait --jit-warnings" RUBY_FORCE_TEST_JIT=1'
|
|
|
|
# - script:
|
|
|
|
# name: make test-spec (JIT)
|
|
|
|
# code: /usr/bin/sudo -H -u test -- bash -c 'make test-spec RUN_OPTS="--disable-gems --jit-wait --jit-warnings"'
|
2018-10-22 20:19:53 -04:00
|
|
|
after-steps:
|
|
|
|
- wantedly/pretty-slack-notify:
|
|
|
|
webhook_url: $SLACK_WEBHOOK_URL
|
|
|
|
channel: alerts
|
|
|
|
username: mjit-test
|
|
|
|
notify_on: "failed"
|
|
|
|
branches: ^trunk$
|