Skip to content

Commit

Permalink
Run Travis CI builds on amd64 and s390x architectures
Browse files Browse the repository at this point in the history
  • Loading branch information
ramsey committed Dec 1, 2019
1 parent 8fde15a commit ac6c584
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .travis.yml
Expand Up @@ -9,12 +9,31 @@ jobs:
- php: 5.5
dist: trusty
- php: 5.6
- php: 5.6
arch: s390x
- php: 7.0
- php: 7.0
arch: s390x
- 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
Expand All @@ -27,6 +46,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
Expand Down
17 changes: 17 additions & 0 deletions resources/scripts/system-info.sh
@@ -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

0 comments on commit ac6c584

Please sign in to comment.