aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorJun Aruga <jaruga@redhat.com>2023-10-28 12:19:23 +0200
committerJun Aruga <junaruga@users.noreply.github.com>2023-10-30 15:23:15 +0100
commitca7296767b5db9a401bc64738984f35880061a73 (patch)
tree0f613adc3b3a48fa5025c315c741906f62e7e819 /.travis.yml
parent5d7904ff7da8a824db672ee4d59d7127eaf00206 (diff)
downloadruby-ca7296767b5db9a401bc64738984f35880061a73.tar.gz
.travis.yml: Remove optflags=-O1 except arm32.
We want to align the used build flags with RubyCI ppc64le Ubuntu jammy server as much as possible to avoid Travis specific issues. Still keep the -O1 for only arm32 due to the following issue. https://bugs.ruby-lang.org/issues/19981
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml8
1 files changed, 6 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 4625151fa5..0a302b70b4 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -30,8 +30,6 @@ env:
# https://github.com/travis-ci/travis-build/blob/e411371dda21430a60f61b8f3f57943d2fe4d344/lib/travis/build/bash/travis_apt_get_options.bash#L7
- travis_apt_get_options='--allow-downgrades --allow-remove-essential --allow-change-held-packages'
- travis_apt_get_options="-yq --no-install-suggests --no-install-recommends $travis_apt_get_options"
- # -O1 is faster than -O3 in our tests.
- - optflags=-O1
# -g0 disables backtraces when SEGV. Do not set that.
- debugflags=-ggdb3
- RUBY_TESTOPTS="$JOBS -q --tty=no"
@@ -82,6 +80,12 @@ env:
compiler: arm-linux-gnueabihf-gcc
env:
- SETARCH='setarch linux32 --verbose --32bit'
+ # Still keep the -O1 for only arm32, while we want to test with the
+ # default optflags -O3.
+ # Because bootstraptest/test_ractor.rb fails with segfualt with the
+ # default -O3.
+ # https://bugs.ruby-lang.org/issues/19981
+ - optflags=-O1
before_install:
- sudo dpkg --add-architecture armhf
- tool/travis_retry.sh sudo bash -c "rm -rf '${TRAVIS_ROOT}/var/lib/apt/lists/'* && exec apt-get update -yq"