Skip to content

Commit f1dfa69

Browse files
authored
Merge pull request #50 from travis-ci/ha-merge-php-build
Merge 7.4 support
2 parents 5998d55 + 088651a commit f1dfa69

10 files changed

+30
-32
lines changed

.travis.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
dist: bionic
103103
language: minimal
104104
env:
105-
- RELEASE=bionic-s390x
105+
- RELEASE=bionic
106106
name: bionic-s390x
107107
before_install:
108108
- sudo rm -rf /var/lib/apt/lists/lock /var/cache/apt/archives/lock /var/lib/dpkg/lock
@@ -119,12 +119,13 @@ jobs:
119119
eval "$(phpenv init -)"
120120
fi
121121
fi
122+
- 'echo "--without-pcre-jit" >> $TRAVIS_BUILD_DIR/custom_configure_options'
122123
- arch: s390x
123124
dist: xenial
124125
group: edge
125126
language: minimal
126127
env:
127-
- RELEASE=xenial-s390x
128+
- RELEASE=xenial
128129
name: xenial-s390x
129130
before_install:
130131
- sudo rm -rf /var/lib/apt/lists/lock /var/cache/apt/archives/lock /var/lib/dpkg/lock
@@ -141,6 +142,7 @@ jobs:
141142
eval "$(phpenv init -)"
142143
fi
143144
fi
145+
- 'echo "--without-pcre-jit" >> $TRAVIS_BUILD_DIR/custom_configure_options'
144146
- arch: arm64
145147
dist: bionic
146148
language: minimal
@@ -251,7 +253,9 @@ before_script:
251253
- __dots() { while true ; do echo -en . ; sleep 30 ; done } ; __dots &
252254

253255
script:
256+
- echo "--enable-option-checking=fatal" >> $HOME/.php-build/share/php-build/default_configure_options
254257
- cat $HOME/.php-build/share/php-build/default_configure_options
258+
- export PKG_CONFIG_PATH="$HOME/.phpenv/versions/$VERSION/lib/pkgconfig:$PKG_CONFIG_PATH"
255259
- ./bin/compile
256260
- | # disable 3rd-party extension builds on master
257261
if [[ ! $VERSION =~ ^master$ ]]; then

bin/install-libsodium

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,8 @@ make install
2121
popd
2222

2323
# add the option in custom_configure_options
24-
echo "--with-sodium=$LIBSODIUM_INSTALL_DIR" >> $TRAVIS_BUILD_DIR/custom_configure_options
24+
if [[ ! $VERSION =~ ^master$ ]] && [[ "$(printf "7.4\n$VERSION" | sort -V | head -n1)" < "7.4" ]]; then
25+
echo "--with-sodium=$LIBSODIUM_INSTALL_DIR" >> $TRAVIS_BUILD_DIR/custom_configure_options
26+
else
27+
echo "--with-sodium" >> $TRAVIS_BUILD_DIR/custom_configure_options
28+
fi

bin/install-libzip

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,8 @@ make install
3838
popd
3939

4040
# add the option in custom_configure_options
41-
echo "--with-libzip=$LIBZIP_INSTALL_DIR" >> $TRAVIS_BUILD_DIR/custom_configure_options
41+
if [[ "$(printf "7.4\n$VERSION" | sort -V | head -n1)" < "7.4" ]]; then
42+
echo "--with-libzip=$LIBZIP_INSTALL_DIR" >> $TRAVIS_BUILD_DIR/custom_configure_options
43+
else
44+
echo "--with-zip" >> $TRAVIS_BUILD_DIR/custom_configure_options
45+
fi

default_configure_options.bionic

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
--enable-zip
1010
--with-zlib
1111
--with-zlib-dir=/usr
12-
--with-mcrypt=/usr
1312
--with-pdo-sqlite
1413
--enable-soap
1514
--enable-xmlreader
@@ -21,7 +20,6 @@
2120
--enable-sysvshm
2221
--enable-sysvmsg
2322
--enable-shmop
24-
--with-mysql=mysqlnd
2523
--with-mysqli=mysqlnd
2624
--with-pdo-mysql=mysqlnd
2725
--enable-pcntl

default_configure_options.bionic-s390x renamed to default_configure_options.bionic-7.4

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
--enable-intl
22
--with-openssl
33
--without-pear
4-
--with-gd
5-
--with-jpeg-dir=/usr
6-
--with-png-dir=/usr
7-
--with-freetype-dir=/usr
4+
--enable-gd
5+
--with-jpeg=/usr
6+
--with-freetype=/usr
87
--enable-exif
9-
--enable-zip
108
--with-zlib
119
--with-zlib-dir=/usr
1210
--with-pdo-sqlite
@@ -45,4 +43,3 @@
4543
--with-ldap-sasl
4644
--enable-dba
4745
--with-cdb
48-
--without-pcre-jit

default_configure_options.xenial-s390x renamed to default_configure_options.bionic-master

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
--enable-intl
22
--with-openssl
33
--without-pear
4-
--with-gd
5-
--with-jpeg-dir=/usr
6-
--with-png-dir=/usr
7-
--with-freetype-dir=/usr
4+
--enable-gd
5+
--with-jpeg
6+
--with-freetype
87
--enable-exif
9-
--enable-zip
8+
--with-zip
109
--with-zlib
1110
--with-zlib-dir=/usr
1211
--with-pdo-sqlite
@@ -35,14 +34,12 @@
3534
--enable-calendar
3635
--with-libdir=lib
3736
--enable-fpm
38-
--enable-maintainer-zts
37+
--enable-zts
3938
--with-gmp
40-
--with-kerberos
4139
--with-imap
4240
--with-imap-ssl
4341
--with-kerberos
4442
--with-ldap
4543
--with-ldap-sasl
4644
--enable-dba
4745
--with-cdb
48-
--without-pcre-jit

default_configure_options.trusty

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
--enable-zip
1010
--with-zlib
1111
--with-zlib-dir=/usr
12-
--with-mcrypt=/usr
1312
--with-pdo-sqlite
1413
--enable-soap
1514
--enable-xmlreader
@@ -21,7 +20,6 @@
2120
--enable-sysvshm
2221
--enable-sysvmsg
2322
--enable-shmop
24-
--with-mysql=mysqlnd
2523
--with-mysqli=mysqlnd
2624
--with-pdo-mysql=mysqlnd
2725
--enable-pcntl

default_configure_options.trusty-7.4

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@
22
--with-openssl
33
--without-pear
44
--enable-gd
5-
--with-jpeg
6-
--with-freetype
5+
--with-jpeg=/usr
6+
--with-freetype=/usr
77
--enable-exif
8-
--with-zip
9-
--with-zlib
10-
--with-zlib-dir=/usr
118
--with-pdo-sqlite
129
--enable-soap
1310
--enable-xmlreader
@@ -36,6 +33,7 @@
3633
--enable-fpm
3734
--enable-maintainer-zts
3835
--with-gmp
36+
--with-kerberos
3937
--with-imap
4038
--with-imap-ssl
4139
--with-kerberos

default_configure_options.xenial

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
--enable-zip
1010
--with-zlib
1111
--with-zlib-dir=/usr
12-
--with-mcrypt=/usr
1312
--with-pdo-sqlite
1413
--enable-soap
1514
--enable-xmlreader
@@ -21,7 +20,6 @@
2120
--enable-sysvshm
2221
--enable-sysvmsg
2322
--enable-shmop
24-
--with-mysql=mysqlnd
2523
--with-mysqli=mysqlnd
2624
--with-pdo-mysql=mysqlnd
2725
--enable-pcntl

default_configure_options.xenial-7.4

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
--with-openssl
33
--without-pear
44
--enable-gd
5-
--with-jpeg
6-
--with-freetype
5+
--with-jpeg=/usr
6+
--with-freetype=/usr
77
--enable-exif
8-
--with-zip
98
--with-zlib
109
--with-zlib-dir=/usr
1110
--with-pdo-sqlite
@@ -36,6 +35,7 @@
3635
--enable-fpm
3736
--enable-maintainer-zts
3837
--with-gmp
38+
--with-kerberos
3939
--with-imap
4040
--with-imap-ssl
4141
--with-kerberos

0 commit comments

Comments
 (0)