2018-10-23 09:34:50 -04:00
|
|
|
#
|
|
|
|
# Wercker is dedicated for testing MJIT. Please use Travis or AppVeyor for non-MJIT testing.
|
2018-10-24 06:29:39 -04:00
|
|
|
# This runs all Ruby tests with --jit, or --jit-wait which synchronously JITs all methods.
|
2018-10-23 09:34:50 -04:00
|
|
|
#
|
2018-10-23 11:54:11 -04:00
|
|
|
box: ruby:2.5-stretch
|
2018-10-22 20:19:53 -04:00
|
|
|
no-response-timeout: 30
|
|
|
|
command-timeout: 60
|
2018-10-23 12:23:55 -04:00
|
|
|
|
2018-10-24 08:19:39 -04:00
|
|
|
test-mjit:
|
2018-10-22 20:19:53 -04:00
|
|
|
steps:
|
2018-10-23 11:54:11 -04:00
|
|
|
- install-packages:
|
|
|
|
packages: bison sudo
|
2018-10-22 20:19:53 -04:00
|
|
|
- script:
|
|
|
|
name: workaround ipv6 localhost
|
|
|
|
code: ruby -e "hosts = File.read('/etc/hosts').sub(/^::1\s*localhost.*$/, ''); File.write('/etc/hosts', hosts)"
|
|
|
|
- script:
|
2018-10-23 11:54:11 -04:00
|
|
|
name: create user # some file permission tests don't succeed with root.
|
|
|
|
code: useradd --shell /bin/bash --create-home test && chown -R test:test .
|
2018-10-23 09:22:07 -04:00
|
|
|
- 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
|
2018-10-23 11:54:11 -04:00
|
|
|
code: /usr/bin/sudo -H -u test -- make -j$(nproc) all install
|
2018-10-23 09:22:07 -04:00
|
|
|
- script:
|
2018-10-24 08:19:39 -04:00
|
|
|
name: make test (JIT)
|
|
|
|
code: /usr/bin/sudo -H -u test -- make test RUN_OPTS="--disable-gems --jit --jit-warnings"
|
2018-10-23 09:22:07 -04:00
|
|
|
- script:
|
2018-10-24 08:19:39 -04:00
|
|
|
name: make test-all (JIT)
|
|
|
|
code: /usr/bin/sudo -H -u test -- make test-all RUN_OPTS="--disable-gems --jit --jit-warnings" TESTOPTS="--color=never --job-status=normal --longest 10 --subprocess-timeout-scale=3.0 --excludes=test/excludes/_wercker/test-mjit"
|
2018-10-24 08:14:26 -04:00
|
|
|
- script:
|
2018-10-24 08:19:39 -04:00
|
|
|
name: make test-spec (JIT)
|
|
|
|
code: /usr/bin/sudo -H -u test -- make test-spec RUN_OPTS="--disable-gems --jit --jit-warnings"
|
2018-10-23 12:23:55 -04:00
|
|
|
after-steps:
|
|
|
|
- wantedly/pretty-slack-notify:
|
|
|
|
webhook_url: $SLACK_WEBHOOK_URL
|
2018-10-24 08:19:39 -04:00
|
|
|
username: Wercker test-mjit
|
2018-10-23 12:23:55 -04:00
|
|
|
channel: alerts
|
|
|
|
notify_on: "failed"
|
|
|
|
branches: ^trunk$
|
2018-10-23 11:54:11 -04:00
|
|
|
|
2018-10-24 08:19:39 -04:00
|
|
|
test-mjit-wait:
|
2018-10-23 12:23:55 -04:00
|
|
|
steps:
|
|
|
|
- install-packages:
|
|
|
|
packages: bison sudo
|
|
|
|
- script:
|
|
|
|
name: workaround ipv6 localhost
|
|
|
|
code: ruby -e "hosts = File.read('/etc/hosts').sub(/^::1\s*localhost.*$/, ''); File.write('/etc/hosts', hosts)"
|
|
|
|
- script:
|
|
|
|
name: create user # some file permission tests don't succeed with root.
|
|
|
|
code: useradd --shell /bin/bash --create-home test && chown -R test:test .
|
|
|
|
- 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 -- make -j$(nproc) all install
|
|
|
|
- script:
|
2018-10-24 08:19:39 -04:00
|
|
|
name: make test (JIT wait)
|
|
|
|
code: /usr/bin/sudo -H -u test -- make test RUN_OPTS="--disable-gems --jit-wait --jit-warnings"
|
|
|
|
# split test-all to 2 steps to loosen timeout
|
2018-10-24 05:52:01 -04:00
|
|
|
- script:
|
2018-10-24 11:49:03 -04:00
|
|
|
name: make test-all1 (JIT wait) # only: test/ruby/, test/testunit/, test/rubygems/, test/rss
|
|
|
|
code: /usr/bin/sudo -H -u test -- make test-all RUN_OPTS="--disable-gems --jit-wait --jit-warnings" TESTS="test/ruby/ test/testunit/ test/rubygems/ test/rss/" TESTOPTS="--color=never --job-status=normal --longest 10 --subprocess-timeout-scale=3.0 --excludes=test/excludes/_wercker/test-mjit-wait"
|
2018-10-23 12:23:55 -04:00
|
|
|
- script:
|
2018-10-30 19:16:16 -04:00
|
|
|
# TODO: remove `--exclude test/webrick` once it's fixed https://app.wercker.com/ruby/ruby/runs/test-mjit-wait/5bd092a89b1e440006d5780d?step=5bd092e3591ca80007258400
|
2018-10-24 11:49:03 -04:00
|
|
|
name: make test-all2 (JIT wait) # except: test/ruby/, test/testunit/, test/rubygems/, test/rss
|
2018-10-30 19:16:16 -04:00
|
|
|
code: /usr/bin/sudo -H -u test -- make test-all RUN_OPTS="--disable-gems --jit-wait --jit-warnings" TESTOPTS="--exclude test/ruby/ --exclude test/testunit/ --exclude test/rubygems/ --exclude test/rss/ --exclude test/webrick/ --color=never --job-status=normal --longest 10 --subprocess-timeout-scale=3.0 --excludes=test/excludes/_wercker/test-mjit-wait"
|
2018-10-24 08:19:39 -04:00
|
|
|
- script:
|
|
|
|
name: make test-spec (JIT wait)
|
|
|
|
code: /usr/bin/sudo -H -u test -- 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
|
2018-10-24 08:19:39 -04:00
|
|
|
username: Wercker test-mjit-wait
|
2018-10-22 20:19:53 -04:00
|
|
|
channel: alerts
|
|
|
|
notify_on: "failed"
|
|
|
|
branches: ^trunk$
|