@@ -3,7 +3,6 @@ language: php
3
3
jobs :
4
4
include :
5
5
- dist : jammy
6
- group : minimal
7
6
env :
8
7
- RELEASE=jammy
9
8
name : jammy
27
26
fi
28
27
fi
29
28
- dist : focal
30
- language : minimal
31
- group : stable
29
+ group : previous
32
30
env :
33
31
- RELEASE=focal
34
32
name : focal
52
50
fi
53
51
fi
54
52
- dist : bionic
55
- language : minimal
56
53
group : stable
57
54
php : " 7.4"
58
55
env :
@@ -361,71 +358,74 @@ jobs:
361
358
fi
362
359
env :
363
360
global :
364
- - VERSION=master ALIAS=nightly
365
- - ICU_RELEASE=59.1
366
- - ICU_INSTALL_DIR=$HOME/.phpenv/versions/$VERSION
367
- - PATH="$HOME/.phpenv/bin:$HOME/.php-build/bin:$PATH"
361
+ - VERSION=master ALIAS=nightly
362
+ - ICU_RELEASE=74.2
363
+ - ICU_INSTALL_DIR=$HOME/.phpenv/versions/$VERSION
364
+ - PATH="$HOME/.phpenv/bin:$HOME/.php-build/bin:$PATH"
368
365
369
366
before_install :
370
367
- php -f test.php || true
371
368
372
369
install :
373
- - if [[ ! -d $HOME/.php-build ]]; then git clone https://github.com/php-build/php-build.git $HOME/.php-build; fi
374
- - rm -rf $HOME/.phpenv
375
- - git clone 'https://github.com/phpenv/phpenv.git' $HOME/.phpenv
376
- - eval "$($HOME/.phpenv/bin/phpenv init -)"
377
- - pushd $HOME/.php-build
378
- - git reset --hard HEAD
379
- - git checkout master
380
- - git pull
381
- - popd
382
- - 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
383
- - | # older distros don't ship a libjpeg.pc, add our own to pkg-config path
384
- if ! pkg-config --exists libjpeg libsasl2; then
385
- export PKG_CONFIG_PATH=$PWD:$PKG_CONFIG_PATH
386
- fi
387
- - ./bin/install-icu
388
- - export PKG_CONFIG_PATH=$ICU_INSTALL_DIR/lib/pkgconfig:$PKG_CONFIG_PATH
389
- - touch custom_configure_options
390
- - ./bin/install-libzip
391
- - ./bin/install-libsodium
392
- - ./bin/install-password-argon2
393
- - . ./bin/install-onig # sourced to export ONIG_LIBS
394
- - 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
395
- - |
396
- if [[ -f default_configure_options.$RELEASE-$MINOR_VERSION ]]; then
397
- cp default_configure_options.$RELEASE-$MINOR_VERSION $HOME/.php-build/share/php-build/default_configure_options
398
- else
399
- cp default_configure_options.$RELEASE $HOME/.php-build/share/php-build/default_configure_options
400
- fi
401
- - cat custom_configure_options >> $HOME/.php-build/share/php-build/default_configure_options
402
- - |
403
- if [[ $(lsb_release -cs) = "trusty" || $(lsb_release -cs) = "xenial" || $(lsb_release -cs) = "bionic" ]]; then
404
- if [[ $HOSTTYPE == "powerpc64le" ]]; then
405
- sudo ln /usr/include/powerpc64le-linux-gnu/gmp.h /usr/include/gmp.h
406
- sudo ln -s /usr/lib/powerpc64le-linux-gnu/libldap_r-2.4.so.2 /usr/lib/libldap_r.so
407
- sudo ln -s /usr/lib/powerpc64le-linux-gnu/liblber-2.4.so.2 /usr/lib/liblber.so
370
+ - if [[ ! -d $HOME/.php-build ]]; then git clone https://github.com/php-build/php-build.git $HOME/.php-build; fi
371
+ - ~/.php-build/install-dependencies.sh
372
+ - rm -rf $HOME/.phpenv
373
+ - git clone 'https://github.com/phpenv/phpenv.git' $HOME/.phpenv
374
+ - eval "$($HOME/.phpenv/bin/phpenv init -)"
375
+ - pushd $HOME/.php-build
376
+ - git reset --hard HEAD
377
+ - git checkout master
378
+ - git pull
379
+ - popd
380
+ - 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
381
+ - | # older distros don't ship a libjpeg.pc, add our own to pkg-config path
382
+ if ! pkg-config --exists libjpeg libsasl2; then
383
+ export PKG_CONFIG_PATH=$PWD:$PKG_CONFIG_PATH
384
+ fi
385
+ - ./bin/install-icu
386
+ - export PKG_CONFIG_PATH=$ICU_INSTALL_DIR/lib/pkgconfig:$PKG_CONFIG_PATH
387
+ - touch custom_configure_options
388
+ - ./bin/install-libzip
389
+ - ./bin/install-libsodium
390
+ - ./bin/install-password-argon2
391
+ - . ./bin/install-onig # sourced to export ONIG_LIBS
392
+ - 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
393
+ - |
394
+ if [[ -f default_configure_options.$RELEASE-$MINOR_VERSION ]]; then
395
+ cp default_configure_options.$RELEASE-$MINOR_VERSION $HOME/.php-build/share/php-build/default_configure_options
408
396
else
409
- sudo ln /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h
410
- sudo ln -s /usr/lib/x86_64-linux-gnu/libldap_r.so /usr/lib/libldap_r.so
411
- sudo ln -s /usr/lib/x86_64-linux-gnu/libldap.so /usr/lib/libldap.so
412
- sudo ln -s /usr/lib/x86_64-linux-gnu/libldap.a /usr/lib/libldap.a
413
- sudo ln -s /usr/lib/x86_64-linux-gnu/liblber.so /usr/lib/liblber.so
397
+ cp default_configure_options.$RELEASE $HOME/.php-build/share/php-build/default_configure_options
398
+ fi
399
+ - cat custom_configure_options >> $HOME/.php-build/share/php-build/default_configure_options
400
+ - |
401
+ if [[ $(lsb_release -cs) = "trusty" || $(lsb_release -cs) = "xenial" || $(lsb_release -cs) = "bionic" ]]; then
402
+ if [[ $HOSTTYPE == "powerpc64le" ]]; then
403
+ sudo ln /usr/include/powerpc64le-linux-gnu/gmp.h /usr/include/gmp.h
404
+ sudo ln -s /usr/lib/powerpc64le-linux-gnu/libldap_r-2.4.so.2 /usr/lib/libldap_r.so
405
+ sudo ln -s /usr/lib/powerpc64le-linux-gnu/liblber-2.4.so.2 /usr/lib/liblber.so
406
+ else
407
+ sudo ln /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h
408
+ sudo ln -s /usr/lib/x86_64-linux-gnu/libldap_r.so /usr/lib/libldap_r.so
409
+ sudo ln -s /usr/lib/x86_64-linux-gnu/libldap.so /usr/lib/libldap.so
410
+ sudo ln -s /usr/lib/x86_64-linux-gnu/libldap.a /usr/lib/libldap.a
411
+ sudo ln -s /usr/lib/x86_64-linux-gnu/liblber.so /usr/lib/liblber.so
412
+ fi
414
413
fi
415
- fi
416
414
417
415
before_script :
418
- - ' export LSB_RELEASE=${LSB_RELEASE:-$(lsb_release -rs || echo ${$(sw_vers -productVersion)%*.*})}'
419
- - ' export OS_NAME=${OS_NAME:-$(lsb_release -is | tr "A-Z" "a-z" || echo "osx")}'
420
- - ' export ARCH=${ARCH:-$(uname -m)}'
421
- - ' export INSTALL_DEST=${INSTALL_DEST:-$HOME/.phpenv/versions}'
422
- - __dots() { while true ; do echo -en . ; sleep 30 ; done } ; __dots &
416
+ - " export COMPOSER_ALLOW_SUPERUSER=1"
417
+ - " export LSB_RELEASE=${LSB_RELEASE:-$(lsb_release -rs || echo ${$(sw_vers -productVersion)%*.*})}"
418
+ - ' export OS_NAME=${OS_NAME:-$(lsb_release -is | tr "A-Z" "a-z" || echo "osx")}'
419
+ - " export ARCH=${ARCH:-$(uname -m)}"
420
+ - " export INSTALL_DEST=${INSTALL_DEST:-$HOME/.phpenv/versions}"
421
+ - __dots() { while true ; do echo -en . ; sleep 30 ; done } ; __dots &
423
422
424
423
script :
425
424
- echo "--enable-option-checking=fatal" >> $HOME/.php-build/share/php-build/default_configure_options
426
425
- cat $HOME/.php-build/share/php-build/default_configure_options
427
426
- export PKG_CONFIG_PATH="$HOME/.phpenv/versions/$VERSION/lib/pkgconfig:$PKG_CONFIG_PATH"
428
427
- ./bin/compile
428
+ # - sudo mkdir -p /usr/local/bin/composer && sudo wget -P /usr/local/bin/composer http://getcomposer.org/composer.phar && sudo chmod +x /usr/local/bin/composer/composer.phar && alias composer='/usr/local/bin/composer/composer.phar' && composer self-update
429
429
- | # disable 3rd-party extension builds on master
430
430
if [[ $VERSION =~ ^7.3.* ]]; then
431
431
(yes '' | ./bin/compile-extension-redis) &&
@@ -448,7 +448,7 @@ script:
448
448
(./bin/compile-extension-memcache;
449
449
./bin/compile-extension-memcached) &&
450
450
./bin/compile-extension-ssh2 &&
451
- sudo sed -i '/^extension=/d' $INSTALL_DEST/$VERSION/etc/php.ini
451
+ sed -i '/^extension=/d' $INSTALL_DEST/$VERSION/etc/php.ini
452
452
fi
453
453
fi
454
454
0 commit comments