Skip to content

Commit 850feff

Browse files
Girgiasnikic
authored andcommitted
Add S390X architecture as a Travis job
This gives us a way to compile and test a big endian architecture. Closes GH-5382.
1 parent 810c5c7 commit 850feff

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ jobs:
7474
arch: amd64
7575
- env: ENABLE_ZTS=1 ENABLE_DEBUG=1 SKIP_IO_CAPTURE_TESTS=1 ARM64=1
7676
arch: arm64
77+
- env: ENABLE_ZTS=1 ENABLE_DEBUG=1 SKIP_IO_CAPTURE_TESTS=1 S390X=1
78+
arch: s390x
7779

7880
before_script:
7981
- ccache --version

travis/compile.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ if [[ "$ENABLE_DEBUG" == 1 ]]; then
99
else
1010
DEBUG="";
1111
fi
12+
if [[ "$S390X" == 1 ]]; then
13+
S390X_CONFIG="--without-pcre-jit";
14+
else
15+
S390X_CONFIG="";
16+
fi
1217

1318
if [[ -z "$CONFIG_LOG_FILE" ]]; then
1419
CONFIG_QUIET="--quiet"
@@ -32,6 +37,7 @@ MAKE_JOBS=${MAKE_JOBS:-$(nproc)}
3237
$CONFIG_QUIET \
3338
$DEBUG \
3439
$TS \
40+
$S390X_CONFIG \
3541
--enable-phpdbg \
3642
--enable-fpm \
3743
--with-pdo-mysql=mysqlnd \

travis/setup-pgsql.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
echo '
33
<?php $conn_str .= " user=postgres"; ?>' >> "./ext/pgsql/tests/config.inc"
4-
if [ -z "$ARM64" ]; then
4+
if [ -z "$ARM64" -o -z "$S390X"]; then
55
psql -c 'create database test;' -U postgres
66
fi

0 commit comments

Comments
 (0)