Skip to content

Commit dd62386

Browse files
authored
Adding jammy PHP support (#60)
1 parent 12b2126 commit dd62386

6 files changed

+275
-0
lines changed

.travis.yml

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,32 @@ language: php
22

33
jobs:
44
include:
5+
- dist: jammy
6+
language: minimal
7+
group: dev
8+
env:
9+
- RELEASE=jammy
10+
name: jammy
11+
php: '5.6'
12+
before_install:
13+
- sudo rm -rf /var/lib/apt/lists/lock /var/cache/apt/archives/lock /var/lib/dpkg/lock
14+
- sudo apt-get update
15+
- sudo apt-get -y install libcurl4-openssl-dev
16+
- if [[ $VERSION =~ ^8.1 ]]; then sudo apt-get -y install argon2 libargon2-0 libargon2-0-dev; fi
17+
- sudo ln -s /usr/include/x86_64-linux-gnu/curl/ /usr/local/include
18+
- command -v expect || sudo apt-get install expect
19+
- |
20+
if ! command -v phpenv; then
21+
pushd $HOME
22+
curl -L http://git.io/phpenv-installer | bash
23+
popd
24+
export PHPENV_ROOT="/home/travis/.phpenv"
25+
if [ -d "${PHPENV_ROOT}" ]; then
26+
export PATH="${PHPENV_ROOT}/bin:${PATH}"
27+
eval "$(phpenv init -)"
28+
fi
29+
fi
30+
if: env(VERSION) !~ /^7\.[23]/
531
- dist: focal
632
language: __ubuntu_2004__
733
group: dev
@@ -83,6 +109,27 @@ jobs:
83109
name: trusty
84110
php: '5.6'
85111
if: env(VERSION) =~ /^7\.[0-3]/
112+
# - arch: ppc64le
113+
# dist: jammy
114+
# language: minimal
115+
# env:
116+
# - RELEASE=jammy
117+
# name: jammy-ppc64le
118+
# before_install:
119+
# - sudo rm -rf /var/lib/apt/lists/lock /var/cache/apt/archives/lock /var/lib/dpkg/lock
120+
# - sudo apt-get update
121+
# - sudo apt-get -y -q=2 --no-install-recommends --no-install-suggests install libtidy-dev libxml2-dev libcurl4-openssl-dev libjpeg-dev libpng-dev libxpm-dev libmysqlclient-dev libpq-dev libicu-dev libfreetype6-dev libldap2-dev libxslt-dev libssl-dev libldb-dev libc-client-dev libkrb5-dev libsasl2-dev libmcrypt-dev expect re2c
122+
# - |
123+
# if ! command -v phpenv; then
124+
# pushd $HOME
125+
# curl -L http://git.io/phpenv-installer | bash
126+
# popd
127+
# export PHPENV_ROOT="/home/travis/.phpenv"
128+
# if [ -d "${PHPENV_ROOT}" ]; then
129+
# export PATH="${PHPENV_ROOT}/bin:${PATH}"
130+
# eval "$(phpenv init -)"
131+
# fi
132+
# fi
86133
- arch: ppc64le
87134
dist: focal
88135
language: minimal
@@ -147,6 +194,28 @@ jobs:
147194
eval "$(phpenv init -)"
148195
fi
149196
fi
197+
# - arch: s390x
198+
# dist: jammy
199+
# language: minimal
200+
# env:
201+
# - RELEASE=jammy
202+
# name: jammy-s390x
203+
# before_install:
204+
# - sudo rm -rf /var/lib/apt/lists/lock /var/cache/apt/archives/lock /var/lib/dpkg/lock
205+
# - sudo apt-get update
206+
# - sudo apt-get -y -q=2 --no-install-recommends --no-install-suggests install libtidy-dev libxml2-dev libcurl4-openssl-dev libjpeg-dev libpng-dev libxpm-dev libmysqlclient-dev libpq-dev libicu-dev libfreetype6-dev libldap2-dev libxslt-dev libssl-dev libldb-dev libc-client-dev libkrb5-dev libsasl2-dev libmcrypt-dev expect re2c
207+
# - |
208+
# if ! command -v phpenv; then
209+
# pushd $HOME
210+
# curl -L http://git.io/phpenv-installer | bash
211+
# popd
212+
# export PHPENV_ROOT="/home/travis/.phpenv"
213+
# if [ -d "${PHPENV_ROOT}" ]; then
214+
# export PATH="${PHPENV_ROOT}/bin:${PATH}"
215+
# eval "$(phpenv init -)"
216+
# fi
217+
# fi
218+
# - 'echo "--without-pcre-jit" >> $TRAVIS_BUILD_DIR/custom_configure_options'
150219
- arch: s390x
151220
dist: focal
152221
language: minimal
@@ -214,6 +283,27 @@ jobs:
214283
fi
215284
fi
216285
- 'echo "--without-pcre-jit" >> $TRAVIS_BUILD_DIR/custom_configure_options'
286+
# - arch: arm64-graviton2
287+
# dist: jammy
288+
# language: minimal
289+
# env:
290+
# - RELEASE=jammy
291+
# name: jammy-arm64
292+
# before_install:
293+
# - sudo rm -rf /var/lib/apt/lists/lock /var/cache/apt/archives/lock /var/lib/dpkg/lock
294+
# - sudo apt-get update
295+
# - sudo apt-get -y -q=2 --no-install-recommends --no-install-suggests install libtidy-dev libxml2-dev libcurl4-openssl-dev libjpeg-dev libpng-dev libxpm-dev libmysqlclient-dev libpq-dev libicu-dev libfreetype6-dev libldap2-dev libxslt-dev libssl-dev libldb-dev libc-client-dev libkrb5-dev libsasl2-dev libmcrypt-dev expect re2c
296+
# - |
297+
# if ! command -v phpenv; then
298+
# pushd $HOME
299+
# curl -L http://git.io/phpenv-installer | bash
300+
# popd
301+
# export PHPENV_ROOT="/home/travis/.phpenv"
302+
# if [ -d "${PHPENV_ROOT}" ]; then
303+
# export PATH="${PHPENV_ROOT}/bin:${PATH}"
304+
# eval "$(phpenv init -)"
305+
# fi
306+
# fi
217307
- arch: arm64-graviton2
218308
dist: focal
219309
language: minimal

bin/compile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,11 @@ export PATH="$HOME/.phpenv/bin:$HOME/.php-build/bin:$PATH"
6262

6363
buildDefinition=${VERSION}
6464
if [[ $VERSION == nightly* || $VERSION == master* ]]; then
65+
if [[ $RELEASE == jammy ]]; then
66+
buildDefinition=8.1snapshot
67+
else
6568
buildDefinition=8.0snapshot
69+
fi
6670
fi
6771

6872
php-build -i development "${buildDefinition}" "${INSTALL_DEST}/${VERSION}"

default_configure_options.jammy-7.4

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
--enable-intl
2+
--with-openssl
3+
--without-pear
4+
--enable-gd
5+
--with-jpeg=/usr
6+
--with-freetype=/usr
7+
--enable-exif
8+
--with-zlib
9+
--with-zlib-dir=/usr
10+
--with-pdo-sqlite
11+
--enable-soap
12+
--enable-xmlreader
13+
--with-xsl
14+
--enable-ftp
15+
--with-tidy
16+
--with-xmlrpc
17+
--enable-sysvsem
18+
--enable-sysvshm
19+
--enable-sysvmsg
20+
--enable-shmop
21+
--with-mysqli=mysqlnd
22+
--with-pdo-mysql=mysqlnd
23+
--enable-pcntl
24+
--with-readline
25+
--enable-mbstring
26+
--with-curl
27+
--with-pgsql
28+
--with-pdo-pgsql
29+
--with-gettext
30+
--enable-sockets
31+
--with-bz2
32+
--enable-bcmath
33+
--enable-calendar
34+
--with-libdir=lib
35+
--enable-fpm
36+
--enable-maintainer-zts
37+
--with-gmp
38+
--with-kerberos
39+
--with-imap
40+
--with-imap-ssl
41+
--with-kerberos
42+
--with-ldap
43+
--with-ldap-sasl
44+
--enable-dba
45+
--with-cdb

default_configure_options.jammy-8.0

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
--enable-intl
2+
--with-openssl
3+
--without-pear
4+
--enable-gd
5+
--with-jpeg
6+
--with-freetype
7+
--enable-exif
8+
--with-zip
9+
--with-zlib
10+
--with-zlib-dir=/usr
11+
--with-pdo-sqlite
12+
--enable-soap
13+
--enable-xmlreader
14+
--with-xsl
15+
--enable-ftp
16+
--with-tidy
17+
--with-mhash
18+
--with-xmlrpc
19+
--enable-sysvsem
20+
--enable-sysvshm
21+
--enable-sysvmsg
22+
--enable-shmop
23+
--with-mysqli=mysqlnd
24+
--with-pdo-mysql=mysqlnd
25+
--enable-pcntl
26+
--with-readline
27+
--enable-mbstring
28+
--with-curl
29+
--with-pgsql
30+
--with-pdo-pgsql
31+
--with-gettext
32+
--enable-sockets
33+
--with-bz2
34+
--enable-bcmath
35+
--enable-calendar
36+
--with-libdir=lib
37+
--enable-fpm
38+
--enable-zts
39+
--with-gmp
40+
--with-imap
41+
--with-imap-ssl
42+
--with-kerberos
43+
--with-ldap
44+
--with-ldap-sasl
45+
--enable-dba
46+
--with-cdb

default_configure_options.jammy-8.1

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
--enable-intl
2+
--with-openssl
3+
--without-pear
4+
--enable-gd
5+
--with-jpeg
6+
--with-freetype
7+
--enable-exif
8+
--with-zip
9+
--with-zlib
10+
--with-zlib-dir=/usr
11+
--with-pdo-sqlite
12+
--enable-soap
13+
--enable-xmlreader
14+
--with-xsl
15+
--enable-ftp
16+
--with-tidy
17+
--with-mhash
18+
--with-xmlrpc
19+
--enable-sysvsem
20+
--enable-sysvshm
21+
--enable-sysvmsg
22+
--enable-shmop
23+
--with-mysqli=mysqlnd
24+
--with-pdo-mysql=mysqlnd
25+
--enable-pcntl
26+
--with-readline
27+
--enable-mbstring
28+
--with-curl
29+
--with-pgsql
30+
--with-pdo-pgsql
31+
--with-gettext
32+
--enable-sockets
33+
--with-bz2
34+
--enable-bcmath
35+
--enable-calendar
36+
--with-libdir=lib
37+
--enable-fpm
38+
--enable-zts
39+
--with-gmp
40+
--with-imap
41+
--with-imap-ssl
42+
--with-kerberos
43+
--with-ldap
44+
--with-ldap-sasl
45+
--enable-dba
46+
--with-cdb
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
--enable-intl
2+
--with-openssl
3+
--without-pear
4+
--enable-gd
5+
--with-jpeg
6+
--with-freetype
7+
--enable-exif
8+
--with-zip
9+
--with-zlib
10+
--with-zlib-dir=/usr
11+
--with-pdo-sqlite
12+
--enable-soap
13+
--enable-xmlreader
14+
--with-xsl
15+
--enable-ftp
16+
--with-tidy
17+
--enable-sysvsem
18+
--enable-sysvshm
19+
--enable-sysvmsg
20+
--enable-shmop
21+
--with-mysqli=mysqlnd
22+
--with-pdo-mysql=mysqlnd
23+
--enable-pcntl
24+
--with-readline
25+
--enable-mbstring
26+
--with-curl
27+
--with-pgsql
28+
--with-pdo-pgsql
29+
--with-gettext
30+
--enable-sockets
31+
--with-bz2
32+
--enable-bcmath
33+
--enable-calendar
34+
--with-libdir=lib
35+
--enable-fpm
36+
--enable-zts
37+
--with-gmp
38+
--with-imap
39+
--with-imap-ssl
40+
--with-kerberos
41+
--with-ldap
42+
--with-ldap-sasl
43+
--enable-dba
44+
--with-cdb

0 commit comments

Comments
 (0)