Run Travis CI builds on big endian (s390x) CPUs

This commit is contained in:
Ben Ramsey
2019-11-30 16:51:32 -08:00
parent 80610e0d53
commit fe5f9c0772
2 changed files with 33 additions and 0 deletions
+16
View File
@@ -11,10 +11,25 @@ jobs:
- php: 5.6
- php: 7.0
- php: 7.1
- php: 7.1
arch: s390x
- php: 7.2
- php: 7.2
arch: s390x
- php: 7.3
- php: 7.3
arch: s390x
- php: 7.4
- php: 7.4
arch: s390x
- php: nightly
- php: nightly
arch: s390x
exclude:
- php: 5.4
arch: s390x
- php: 5.5
arch: s390x
allow_failures:
- php: 7.4
- php: nightly
@@ -27,6 +42,7 @@ addons:
- uuid-dev
before_install:
- ./resources/scripts/system-info.sh
- yes '' | pecl install -f libsodium-1.0.7
- yes '' | pecl install -f uuid-1.0.4
- travis_retry composer self-update
+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
endianness=$(echo -n I | od -to2 | awk '{ print substr($2,6,1); exit}')
endian="Big"
if [ $endianness -eq 1 ]; then
endian="Little"
fi
echo
echo "SYSTEM INFORMATION:"
echo
echo "$(uname -a)"
echo
echo "CPU mode: $(getconf LONG_BIT)-bit"
echo "Endianness: ${endian}"
echo