summaryrefslogtreecommitdiff
path: root/wercker.yml
blob: b907a1ddf69e6561fb24726b093052b2533e805a (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#
# 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: ruby:2.5-stretch
no-response-timeout: 30
command-timeout: 60

test-mjit:
  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:
        name: make test (JIT)
        code: /usr/bin/sudo -H -u test -- make test 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="--color=never --job-status=normal --longest 10 --subprocess-timeout-scale=3.0 --excludes=test/excludes/_wercker"
    - script:
        name: make test-spec (JIT)
        code: /usr/bin/sudo -H -u test -- make test-spec RUN_OPTS="--disable-gems --jit --jit-warnings"
  after-steps:
    - wantedly/pretty-slack-notify:
      webhook_url: $SLACK_WEBHOOK_URL
      username: Wercker test-mjit
      channel: alerts
      notify_on: "failed"
      branches: ^trunk$

test-mjit-wait:
  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:
        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
    - script:
        name: make test-all1 (JIT wait)
        code: /usr/bin/sudo -H -u test -- make test-all RUN_OPTS="--disable-gems --jit-wait --jit-warnings" TESTS="test/ruby/ test/testunit/" TESTOPTS="--color=never --job-status=normal --longest 10 --subprocess-timeout-scale=3.0 --excludes=test/excludes/_wercker"
    - script:
        name: make test-all2 (JIT wait)
        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/ --color=never --job-status=normal --longest 10 --subprocess-timeout-scale=3.0 --excludes=test/excludes/_wercker"
    - 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"
  after-steps:
    - wantedly/pretty-slack-notify:
      webhook_url: $SLACK_WEBHOOK_URL
      username: Wercker test-mjit-wait
      channel: alerts
      notify_on: "failed"
      branches: ^trunk$