Skip to content

Commit 2668e97

Browse files
committed
test
1 parent c0f1247 commit 2668e97

File tree

1 file changed

+55
-55
lines changed

1 file changed

+55
-55
lines changed

.travis.yml

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ language: php
33
jobs:
44
include:
55
- dist: jammy
6-
group: minimal
76
env:
87
- RELEASE=jammy
98
name: jammy
@@ -27,8 +26,7 @@ jobs:
2726
fi
2827
fi
2928
- dist: focal
30-
language: minimal
31-
group: stable
29+
group: previous
3230
env:
3331
- RELEASE=focal
3432
name: focal
@@ -52,7 +50,6 @@ jobs:
5250
fi
5351
fi
5452
- dist: bionic
55-
language: minimal
5653
group: stable
5754
php: "7.4"
5855
env:
@@ -361,71 +358,74 @@ jobs:
361358
fi
362359
env:
363360
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"
368365

369366
before_install:
370367
- php -f test.php || true
371368

372369
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
408396
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
414413
fi
415-
fi
416414
417415
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 &
423422

424423
script:
425424
- echo "--enable-option-checking=fatal" >> $HOME/.php-build/share/php-build/default_configure_options
426425
- cat $HOME/.php-build/share/php-build/default_configure_options
427426
- export PKG_CONFIG_PATH="$HOME/.phpenv/versions/$VERSION/lib/pkgconfig:$PKG_CONFIG_PATH"
428427
- ./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
429429
- | # disable 3rd-party extension builds on master
430430
if [[ $VERSION =~ ^7.3.* ]]; then
431431
(yes '' | ./bin/compile-extension-redis) &&
@@ -448,7 +448,7 @@ script:
448448
(./bin/compile-extension-memcache;
449449
./bin/compile-extension-memcached) &&
450450
./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
452452
fi
453453
fi
454454

0 commit comments

Comments
 (0)