blob: 63f85728a96a6ed4489bb51cc187c55ce1f4e352 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#
# Wercker is dedicated for testing MJIT. Please use Travis or AppVeyor for non-MJIT testing.
# This runs all Ruby tests with --jit-wait, which synchronously JITs all methods.
#
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
- script:
name: change owner to test user # using "test" user because some test-all tests fail with root user.
code: 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 -- 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"'
# split test-all to 2 steps to loosen timeout
- script:
name: make test-all1 (JIT) # only: test/ruby/
code: /usr/bin/sudo -H -u test -- bash -c 'make test-all TESTS="test/ruby/" TESTOPTS="--color=never --job-status=normal --longest 10" RUN_OPTS="--disable-gems --jit-wait --jit-warnings"'
- script:
name: make test-all2 (JIT) # except: test/ruby/
code: /usr/bin/sudo -H -u test -- bash -c 'make test-all TESTOPTS="--exclude test/ruby/ --color=never --job-status=normal --longest 10" RUN_OPTS="--disable-gems --jit-wait --jit-warnings"'
- 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"'
after-steps:
- wantedly/pretty-slack-notify:
webhook_url: $SLACK_WEBHOOK_URL
channel: alerts
notify_on: "failed"
branches: ^trunk$
|