8
8
env :
9
9
- RELEASE=jammy
10
10
name : jammy
11
- php : ' 8.1'
11
+ php : " 8.1"
12
12
before_install :
13
13
- sudo rm -rf /var/lib/apt/lists/lock /var/cache/apt/archives/lock /var/lib/dpkg/lock
14
14
- sudo apt-get update
15
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
16
+ - if [[ $VERSION =~ ^8.1 ]]; then sudo apt-get -y install argon2 libargon2-0 libargon2-0-dev php-dev ; fi
17
17
- sudo ln -s /usr/include/x86_64-linux-gnu/curl/ /usr/local/include
18
18
- command -v expect || sudo apt-get install expect
19
19
- |
34
34
env :
35
35
- RELEASE=focal
36
36
name : focal
37
- php : ' 5.6'
37
+ php : " 5.6"
38
38
before_install :
39
39
- sudo rm -rf /var/lib/apt/lists/lock /var/cache/apt/archives/lock /var/lib/dpkg/lock
40
40
- sudo apt-get update
60
60
env :
61
61
- RELEASE=bionic
62
62
name : bionic
63
- php : ' 5.6'
63
+ php : " 5.6"
64
64
before_install :
65
65
- sudo rm -rf /var/lib/apt/lists/lock /var/cache/apt/archives/lock /var/lib/dpkg/lock
66
66
- sudo apt-get update
84
84
env :
85
85
- RELEASE=xenial
86
86
name : xenial
87
- php : ' 5.6'
87
+ php : " 5.6"
88
88
before_install :
89
89
- sudo rm -rf /var/lib/apt/lists/lock /var/cache/apt/archives/lock /var/lib/dpkg/lock
90
90
- sudo apt-get update
@@ -107,7 +107,7 @@ jobs:
107
107
env :
108
108
- RELEASE=trusty
109
109
name : trusty
110
- php : ' 5.6'
110
+ php : " 5.6"
111
111
if : env(VERSION) =~ /^7\.[0-3]/
112
112
- arch : ppc64le
113
113
dist : jammy
@@ -348,65 +348,65 @@ jobs:
348
348
fi
349
349
env :
350
350
global :
351
- - VERSION=master ALIAS=nightly
352
- - ICU_RELEASE=59.1
353
- - ICU_INSTALL_DIR=$HOME/.phpenv/versions/$VERSION
354
- - PATH="$HOME/.phpenv/bin:$HOME/.php-build/bin:$PATH"
351
+ - VERSION=master ALIAS=nightly
352
+ - ICU_RELEASE=59.1
353
+ - ICU_INSTALL_DIR=$HOME/.phpenv/versions/$VERSION
354
+ - PATH="$HOME/.phpenv/bin:$HOME/.php-build/bin:$PATH"
355
355
356
356
before_install :
357
357
- php -f test.php || true
358
358
359
359
install :
360
- - if [[ ! -d $HOME/.php-build ]]; then git clone https://github.com/php-build/php-build.git $HOME/.php-build; fi
361
- - rm -rf $HOME/.phpenv
362
- - git clone 'https://github.com/phpenv/phpenv.git' $HOME/.phpenv
363
- - eval "$($HOME/.phpenv/bin/phpenv init -)"
364
- - pushd $HOME/.php-build
365
- - git reset --hard HEAD
366
- - git checkout master
367
- - git pull
368
- - popd
369
- - if [[ $RELEASE != precise ]]; then unset ICU_RELEASE; fi # disable ICU installation for Trusty; see https://github.com/travis-ci/travis-ci/issues/3616#issuecomment-286302387
370
- - | # older distros don't ship a libjpeg.pc, add our own to pkg-config path
371
- if ! pkg-config --exists libjpeg libsasl2; then
372
- export PKG_CONFIG_PATH=$PWD:$PKG_CONFIG_PATH
373
- fi
374
- - ./bin/install-icu
375
- - export PKG_CONFIG_PATH=$ICU_INSTALL_DIR/lib/pkgconfig:$PKG_CONFIG_PATH
376
- - touch custom_configure_options
377
- - ./bin/install-libzip
378
- - ./bin/install-libsodium
379
- - ./bin/install-password-argon2
380
- - . ./bin/install-onig # sourced to export ONIG_LIBS
381
- - MINOR_VERSION=`echo $VERSION | sed -E 's/^([0-9]+\.[0-9]+).*$/\1/'` # Rewrites 7.2, 7.2snapshot, 7.2.13 => '7.2'. Leaves 'master' as-is
382
- - |
383
- if [[ -f default_configure_options.$RELEASE-$MINOR_VERSION ]]; then
384
- cp default_configure_options.$RELEASE-$MINOR_VERSION $HOME/.php-build/share/php-build/default_configure_options
385
- else
386
- cp default_configure_options.$RELEASE $HOME/.php-build/share/php-build/default_configure_options
387
- fi
388
- - cat custom_configure_options >> $HOME/.php-build/share/php-build/default_configure_options
389
- - |
390
- if [[ $(lsb_release -cs) = "trusty" || $(lsb_release -cs) = "xenial" || $(lsb_release -cs) = "bionic" ]]; then
391
- if [[ $HOSTTYPE == "powerpc64le" ]]; then
392
- sudo ln /usr/include/powerpc64le-linux-gnu/gmp.h /usr/include/gmp.h
393
- sudo ln -s /usr/lib/powerpc64le-linux-gnu/libldap_r-2.4.so.2 /usr/lib/libldap_r.so
394
- sudo ln -s /usr/lib/powerpc64le-linux-gnu/liblber-2.4.so.2 /usr/lib/liblber.so
360
+ - if [[ ! -d $HOME/.php-build ]]; then git clone https://github.com/php-build/php-build.git $HOME/.php-build; fi
361
+ - rm -rf $HOME/.phpenv
362
+ - git clone 'https://github.com/phpenv/phpenv.git' $HOME/.phpenv
363
+ - eval "$($HOME/.phpenv/bin/phpenv init -)"
364
+ - pushd $HOME/.php-build
365
+ - git reset --hard HEAD
366
+ - git checkout master
367
+ - git pull
368
+ - popd
369
+ - if [[ $RELEASE != precise ]]; then unset ICU_RELEASE; fi # disable ICU installation for Trusty; see https://github.com/travis-ci/travis-ci/issues/3616#issuecomment-286302387
370
+ - | # older distros don't ship a libjpeg.pc, add our own to pkg-config path
371
+ if ! pkg-config --exists libjpeg libsasl2; then
372
+ export PKG_CONFIG_PATH=$PWD:$PKG_CONFIG_PATH
373
+ fi
374
+ - ./bin/install-icu
375
+ - export PKG_CONFIG_PATH=$ICU_INSTALL_DIR/lib/pkgconfig:$PKG_CONFIG_PATH
376
+ - touch custom_configure_options
377
+ - ./bin/install-libzip
378
+ - ./bin/install-libsodium
379
+ - ./bin/install-password-argon2
380
+ - . ./bin/install-onig # sourced to export ONIG_LIBS
381
+ - MINOR_VERSION=`echo $VERSION | sed -E 's/^([0-9]+\.[0-9]+).*$/\1/'` # Rewrites 7.2, 7.2snapshot, 7.2.13 => '7.2'. Leaves 'master' as-is
382
+ - |
383
+ if [[ -f default_configure_options.$RELEASE-$MINOR_VERSION ]]; then
384
+ cp default_configure_options.$RELEASE-$MINOR_VERSION $HOME/.php-build/share/php-build/default_configure_options
395
385
else
396
- sudo ln /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h
397
- sudo ln -s /usr/lib/x86_64-linux-gnu/libldap_r.so /usr/lib/libldap_r.so
398
- sudo ln -s /usr/lib/x86_64-linux-gnu/libldap.so /usr/lib/libldap.so
399
- sudo ln -s /usr/lib/x86_64-linux-gnu/libldap.a /usr/lib/libldap.a
400
- sudo ln -s /usr/lib/x86_64-linux-gnu/liblber.so /usr/lib/liblber.so
386
+ cp default_configure_options.$RELEASE $HOME/.php-build/share/php-build/default_configure_options
387
+ fi
388
+ - cat custom_configure_options >> $HOME/.php-build/share/php-build/default_configure_options
389
+ - |
390
+ if [[ $(lsb_release -cs) = "trusty" || $(lsb_release -cs) = "xenial" || $(lsb_release -cs) = "bionic" ]]; then
391
+ if [[ $HOSTTYPE == "powerpc64le" ]]; then
392
+ sudo ln /usr/include/powerpc64le-linux-gnu/gmp.h /usr/include/gmp.h
393
+ sudo ln -s /usr/lib/powerpc64le-linux-gnu/libldap_r-2.4.so.2 /usr/lib/libldap_r.so
394
+ sudo ln -s /usr/lib/powerpc64le-linux-gnu/liblber-2.4.so.2 /usr/lib/liblber.so
395
+ else
396
+ sudo ln /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h
397
+ sudo ln -s /usr/lib/x86_64-linux-gnu/libldap_r.so /usr/lib/libldap_r.so
398
+ sudo ln -s /usr/lib/x86_64-linux-gnu/libldap.so /usr/lib/libldap.so
399
+ sudo ln -s /usr/lib/x86_64-linux-gnu/libldap.a /usr/lib/libldap.a
400
+ sudo ln -s /usr/lib/x86_64-linux-gnu/liblber.so /usr/lib/liblber.so
401
+ fi
401
402
fi
402
- fi
403
403
404
404
before_script :
405
- - ' export LSB_RELEASE=${LSB_RELEASE:-$(lsb_release -rs || echo ${$(sw_vers -productVersion)%*.*})}'
406
- - ' export OS_NAME=${OS_NAME:-$(lsb_release -is | tr "A-Z" "a-z" || echo "osx")}'
407
- - ' export ARCH=${ARCH:-$(uname -m)}'
408
- - ' export INSTALL_DEST=${INSTALL_DEST:-$HOME/.phpenv/versions}'
409
- - __dots() { while true ; do echo -en . ; sleep 30 ; done } ; __dots &
405
+ - " export LSB_RELEASE=${LSB_RELEASE:-$(lsb_release -rs || echo ${$(sw_vers -productVersion)%*.*})}"
406
+ - ' export OS_NAME=${OS_NAME:-$(lsb_release -is | tr "A-Z" "a-z" || echo "osx")}'
407
+ - " export ARCH=${ARCH:-$(uname -m)}"
408
+ - " export INSTALL_DEST=${INSTALL_DEST:-$HOME/.phpenv/versions}"
409
+ - __dots() { while true ; do echo -en . ; sleep 30 ; done } ; __dots &
410
410
411
411
script :
412
412
- echo "--enable-option-checking=fatal" >> $HOME/.php-build/share/php-build/default_configure_options
@@ -441,7 +441,7 @@ after_failure:
441
441
addons :
442
442
artifacts :
443
443
paths :
444
- - $LSB_RELEASE/
444
+ - $LSB_RELEASE/
445
445
target_paths : /binaries/$OS_NAME/$LSB_RELEASE/$ARCH
446
446
apt :
447
447
packages :
0 commit comments