summaryrefslogtreecommitdiff
path: root/.drone.yml
blob: cf81fdd75736aec42a81dab78b5e3dfc711604b5 (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
---
kind: pipeline
type: docker
name: arm64
platform:
  os: linux
  arch: arm64
steps:
  - name: test
    image: ruby:2.5-stretch
    commands:
      - uname -m
      - apt-get -yq update
      - apt-get -yq install software-properties-common
      - apt-get -yq install bison sudo
      # workaround ipv6 localhost
      - ruby -e "hosts = File.read('/etc/hosts').sub(/^::1\s*localhost.*$/, ''); File.write('/etc/hosts', hosts)"
      # create user
      - useradd --shell /bin/bash --create-home test && chown -R test:test .
      # configure
      - /usr/bin/sudo -H -u test -- bash -c 'autoconf && ./configure --disable-install-doc --prefix=/tmp/ruby-prefix'
      # make all install
      - /usr/bin/sudo -H -u test -- make -j$(nproc) all install
      # make test
      - /usr/bin/sudo -H -u test -- make test
      # make test-spec
      - /usr/bin/sudo -H -u test -- make test-spec
      # make test-all
      - /usr/bin/sudo -H -u test -- make test-all
trigger:
  branch:
    - master

---
kind: pipeline
type: docker
name: arm32
platform:
  os: linux
  arch: arm
steps:
  - name: test
    image: ruby:2.5-stretch
    commands:
      - uname -m
      - apt-get -yq update
      - apt-get -yq install software-properties-common
      - apt-get -yq install bison sudo
      # workaround ipv6 localhost
      - ruby -e "hosts = File.read('/etc/hosts').sub(/^::1\s*localhost.*$/, ''); File.write('/etc/hosts', hosts)"
      # create user
      - useradd --shell /bin/bash --create-home test && chown -R test:test .
      # configure
      - /usr/bin/sudo -H -u test -- bash -c 'autoconf && ./configure --disable-install-doc --prefix=/tmp/ruby-prefix'
      # make all install
      - /usr/bin/sudo -H -u test -- make -j$(nproc) all install
      # make test
      - /usr/bin/sudo -H -u test -- make test
      # make test-spec
      - /usr/bin/sudo -H -u test -- make test-spec
      # make test-all
      - /usr/bin/sudo -H -u test -- make test-all
    failure: ignore # `make test` is failing on arm32
trigger:
  branch:
    - master