Skip to content

Commit 4d7bbbe

Browse files
authored
Merge pull request #1691 from peternewman/0.10-s390x
Try building on s390x
2 parents 4e65521 + 01db5e8 commit 4d7bbbe

1 file changed

Lines changed: 30 additions & 6 deletions

File tree

.travis.yml

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ jobs:
133133
- os: linux
134134
dist: bionic
135135
arch: arm64
136-
env:
137-
- TASK='flake8'
136+
env: TASK='flake8'
137+
python: '2.7'
138138
addons:
139139
apt:
140140
packages:
@@ -206,6 +206,30 @@ jobs:
206206
- *bionic_build_extras_python2
207207
sources:
208208
- ubuntu-toolchain-r-test
209+
- os: linux
210+
dist: bionic
211+
arch: s390x
212+
compiler: clang
213+
env: TASK='compile'
214+
python: '2.7'
215+
addons:
216+
apt:
217+
packages:
218+
- *core_build_clang_recent
219+
- *bionic_build_extras_python2
220+
- os: linux
221+
dist: bionic
222+
arch: s390x
223+
compiler: gcc
224+
env: TASK='compile'
225+
python: '2.7'
226+
addons:
227+
apt:
228+
packages:
229+
- *core_build_gpp_latest
230+
- *bionic_build_extras_python2
231+
sources:
232+
- ubuntu-toolchain-r-test
209233
# - os: osx
210234
# osx_image: xcode9.4
211235
# compiler: clang
@@ -497,10 +521,10 @@ before_install:
497521
#Coverity doesn't work with g++ 5 or 6, so only upgrade to g++ 4.9 for that
498522
- if [ "$TRAVIS_OS_NAME" == "linux" -a \( "$TASK" = "compile" -o "$TASK" = "coverage" -o "$TASK" = "doxygen" \) -a "$CXX" = "g++" ]; then export CXX="ccache g++-10" CC="ccache gcc-10"; fi
499523
- if [ "$TASK" = "coverity" -a "$CXX" = "g++" ]; then export CXX="g++-4.9" CC="gcc-4.9"; fi
500-
#Use the latest clang if we're compiling with clang, except on arm64 where it's not available
501-
- if [ "$TRAVIS_OS_NAME" == "linux" -a "$CXX" = "clang++" -a "$TRAVIS_CPU_ARCH" != "arm64" ]; then export CXX="clang++-11" CC="clang-11"; fi
502-
#Use a recent clang if we're compiling with clang on arm64 as the latest isn't available
503-
- if [ "$TRAVIS_OS_NAME" == "linux" -a "$CXX" = "clang++" -a "$TRAVIS_CPU_ARCH" == "arm64" ]; then export CXX="clang++-10" CC="clang-10"; fi
524+
#Use the latest clang if we're compiling with clang, except on arm64 and s390x where it's not available
525+
- if [ "$TRAVIS_OS_NAME" == "linux" -a "$CXX" = "clang++" -a "$TRAVIS_CPU_ARCH" != "arm64" -a "$TRAVIS_CPU_ARCH" != "s390x" ]; then export CXX="clang++-11" CC="clang-11"; fi
526+
#Use a recent clang if we're compiling with clang on arm64 or s390x as the latest isn't available
527+
- if [ "$TRAVIS_OS_NAME" == "linux" -a "$CXX" = "clang++" -a \( "$TRAVIS_CPU_ARCH" == "arm64" -o "$TRAVIS_CPU_ARCH" == "s390x" \) ]; then export CXX="clang++-10" CC="clang-10"; fi
504528
#Report the compiler version
505529
- $CXX --version
506530

0 commit comments

Comments
 (0)