-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add .drone.yml for debug arm64/32 libc files. * Fix 32-bit issue temporary in test/fiddle/helper.rb setting path.
- Loading branch information
Showing
3 changed files
with
113 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
--- | ||
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 strace | ||
# 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 | ||
- ls -l /lib32 || true | ||
- strace -f ldd ruby || true | ||
- /usr/bin/sudo -H -u test -- make test-all TESTS="test/fiddle/test_import.rb" | ||
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 file | ||
# 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 | ||
- ls -l /lib32 || true | ||
- file ruby | ||
- ldd ruby || true | ||
- /usr/bin/sudo -H -u test -- make test-all TESTS="test/fiddle/test_import.rb" | ||
# failure: ignore # `make test` is failing on arm32 | ||
# trigger: | ||
# branch: | ||
# - master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters