.travis.yml: Refactor.
* Add notes. * When you see Travis issue, please check the link below. https://github.com/ruby/ruby/wiki/CI-Servers#travis-ci * Added the following random failure. The ppc64le failure has been happening randomly in Travis focal/jammy. TestRDocGeneratorJsonIndex#test_generate fails randomly. https://app.travis-ci.com/github/ruby/ruby/jobs/612380961#L2900 * Update the comments. * Remove empty lines in nested YAML elements aligning with other parts.
This commit is contained in:
parent
753b1ab194
commit
ebb8da5438
18
.travis.yml
18
.travis.yml
@ -6,8 +6,9 @@
|
|||||||
# conditions mentioned in the file COPYING are met. Consult the file for
|
# conditions mentioned in the file COPYING are met. Consult the file for
|
||||||
# details.
|
# details.
|
||||||
|
|
||||||
# Note we only manage non-amd64 free pipelines.
|
# When you see Travis CI issues, or you are interested in understanding how to
|
||||||
# https://docs.travis-ci.com/user/billing-overview/
|
# manage, please check the link below.
|
||||||
|
# https://github.com/ruby/ruby/wiki/CI-Servers#travis-ci
|
||||||
|
|
||||||
# We enable Travis on the specific branches or forked repositories here.
|
# We enable Travis on the specific branches or forked repositories here.
|
||||||
if: (repo = ruby/ruby AND (branch = master OR branch =~ /^ruby_\d_\d$/)) OR repo != ruby/ruby OR commit_message !~ /\[DOC\]/
|
if: (repo = ruby/ruby AND (branch = master OR branch =~ /^ruby_\d_\d$/)) OR repo != ruby/ruby OR commit_message !~ /\[DOC\]/
|
||||||
@ -24,8 +25,8 @@ git:
|
|||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- NPROC="$(nproc)"
|
- NPROC="$(nproc)"
|
||||||
# JOBS and SETARCH are overridden when necessary; see below.
|
|
||||||
- JOBS=-j$((1+${NPROC}))
|
- JOBS=-j$((1+${NPROC}))
|
||||||
|
# SETARCH are overridden when necessary. See below.
|
||||||
- SETARCH=
|
- SETARCH=
|
||||||
# https://github.com/travis-ci/travis-build/blob/e411371dda21430a60f61b8f3f57943d2fe4d344/lib/travis/build/bash/travis_apt_get_options.bash#L7
|
# 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='--allow-downgrades --allow-remove-essential --allow-change-held-packages'
|
||||||
@ -52,17 +53,14 @@ env:
|
|||||||
openssl
|
openssl
|
||||||
zlib1g-dev
|
zlib1g-dev
|
||||||
- gcc-11 --version
|
- gcc-11 --version
|
||||||
|
|
||||||
- &arm64-linux
|
- &arm64-linux
|
||||||
name: arm64-linux
|
name: arm64-linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
<<: *gcc-11
|
<<: *gcc-11
|
||||||
|
|
||||||
- &ppc64le-linux
|
- &ppc64le-linux
|
||||||
name: ppc64le-linux
|
name: ppc64le-linux
|
||||||
arch: ppc64le
|
arch: ppc64le
|
||||||
<<: *gcc-11
|
<<: *gcc-11
|
||||||
|
|
||||||
- &s390x-linux
|
- &s390x-linux
|
||||||
name: s390x-linux
|
name: s390x-linux
|
||||||
arch: s390x
|
arch: s390x
|
||||||
@ -72,7 +70,6 @@ env:
|
|||||||
# on s390x CPU architecture.
|
# on s390x CPU architecture.
|
||||||
# https://github.com/madler/zlib/pull/410
|
# https://github.com/madler/zlib/pull/410
|
||||||
- DFLTCC=0
|
- DFLTCC=0
|
||||||
|
|
||||||
- &arm32-linux
|
- &arm32-linux
|
||||||
name: arm32-linux
|
name: arm32-linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
@ -105,7 +102,6 @@ env:
|
|||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
# Build every commit (Allowed Failures):
|
|
||||||
- <<: *arm32-linux
|
- <<: *arm32-linux
|
||||||
# Comment out as the 2nd arm64 pipeline is unstable.
|
# Comment out as the 2nd arm64 pipeline is unstable.
|
||||||
# - <<: *arm64-linux
|
# - <<: *arm64-linux
|
||||||
@ -115,6 +111,8 @@ matrix:
|
|||||||
# Allow failures for the unstable jobs.
|
# Allow failures for the unstable jobs.
|
||||||
# - name: arm32-linux
|
# - name: arm32-linux
|
||||||
# - name: arm64-linux
|
# - name: arm64-linux
|
||||||
|
# FIXME: TestRDocGeneratorJsonIndex#test_generate fails randomly.
|
||||||
|
# https://app.travis-ci.com/github/ruby/ruby/jobs/612380961#L2900
|
||||||
- name: ppc64le-linux
|
- name: ppc64le-linux
|
||||||
# - name: s390x-linux
|
# - name: s390x-linux
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
@ -136,9 +134,9 @@ script:
|
|||||||
notifications:
|
notifications:
|
||||||
webhooks:
|
webhooks:
|
||||||
urls:
|
urls:
|
||||||
- secure: mRsoS/UbqDkKkW5p3AEqM27d4SZnV6Gsylo3bm8T/deltQzTsGzZwrm7OIBXZv0UFZdE68XmPlyHfZFLSP2V9QZ7apXMf9/vw0GtcSe1gchtnjpAPF6lYBn7nMCbVPPx9cS0dwL927fjdRM1vj7IKZ2bk4F0lAJ25R25S6teqdk= # ruby-lang slack: ruby/simpler-alerts-bot (travis)
|
# ruby-lang slack: ruby/simpler-alerts-bot (travis)
|
||||||
|
- secure: mRsoS/UbqDkKkW5p3AEqM27d4SZnV6Gsylo3bm8T/deltQzTsGzZwrm7OIBXZv0UFZdE68XmPlyHfZFLSP2V9QZ7apXMf9/vw0GtcSe1gchtnjpAPF6lYBn7nMCbVPPx9cS0dwL927fjdRM1vj7IKZ2bk4F0lAJ25R25S6teqdk=
|
||||||
on_success: never
|
on_success: never
|
||||||
on_failure: always
|
on_failure: always
|
||||||
|
|
||||||
email:
|
email:
|
||||||
- jaruga@ruby-lang.org
|
- jaruga@ruby-lang.org
|
||||||
|
Loading…
x
Reference in New Issue
Block a user