summaryrefslogtreecommitdiff
path: root/.drone.yml
diff options
context:
space:
mode:
authorJun Aruga <junaruga@users.noreply.github.com>2019-10-03 23:12:58 +0200
committerNARUSE, Yui <nurse@users.noreply.github.com>2019-10-04 06:12:58 +0900
commitbdbf8de4980ef54f466809ee27a9f2a00614b0f0 (patch)
tree3aa2ba84261c3ad7bf6698bf54e1a64d3484bb90 /.drone.yml
parentc3dd3b95538a641bbffb02993985ce0cbac1b9d6 (diff)
Enable Drone CI for ARM 64/32-bit cases. (#2520)
https://bugs.ruby-lang.org/issues/16234
Diffstat (limited to '.drone.yml')
-rw-r--r--.drone.yml65
1 files changed, 65 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml
new file mode 100644
index 0000000000..d56c435f1e
--- /dev/null
+++ b/.drone.yml
@@ -0,0 +1,65 @@
+---
+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
+# trigger:
+# branch:
+# - master