Skip to content

Commit 51d4931

Browse files
committed
1 parent ee90ab1 commit 51d4931

File tree

1 file changed

+57
-57
lines changed

1 file changed

+57
-57
lines changed

.travis.yml

Lines changed: 57 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ jobs:
88
env:
99
- RELEASE=jammy
1010
name: jammy
11-
php: '8.1'
11+
php: "8.1"
1212
before_install:
1313
- sudo rm -rf /var/lib/apt/lists/lock /var/cache/apt/archives/lock /var/lib/dpkg/lock
1414
- sudo apt-get update
1515
- 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
1717
- sudo ln -s /usr/include/x86_64-linux-gnu/curl/ /usr/local/include
1818
- command -v expect || sudo apt-get install expect
1919
- |
@@ -34,7 +34,7 @@ jobs:
3434
env:
3535
- RELEASE=focal
3636
name: focal
37-
php: '5.6'
37+
php: "5.6"
3838
before_install:
3939
- sudo rm -rf /var/lib/apt/lists/lock /var/cache/apt/archives/lock /var/lib/dpkg/lock
4040
- sudo apt-get update
@@ -60,7 +60,7 @@ jobs:
6060
env:
6161
- RELEASE=bionic
6262
name: bionic
63-
php: '5.6'
63+
php: "5.6"
6464
before_install:
6565
- sudo rm -rf /var/lib/apt/lists/lock /var/cache/apt/archives/lock /var/lib/dpkg/lock
6666
- sudo apt-get update
@@ -84,7 +84,7 @@ jobs:
8484
env:
8585
- RELEASE=xenial
8686
name: xenial
87-
php: '5.6'
87+
php: "5.6"
8888
before_install:
8989
- sudo rm -rf /var/lib/apt/lists/lock /var/cache/apt/archives/lock /var/lib/dpkg/lock
9090
- sudo apt-get update
@@ -107,7 +107,7 @@ jobs:
107107
env:
108108
- RELEASE=trusty
109109
name: trusty
110-
php: '5.6'
110+
php: "5.6"
111111
if: env(VERSION) =~ /^7\.[0-3]/
112112
- arch: ppc64le
113113
dist: jammy
@@ -348,65 +348,65 @@ jobs:
348348
fi
349349
env:
350350
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"
355355

356356
before_install:
357357
- php -f test.php || true
358358

359359
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
395385
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
401402
fi
402-
fi
403403
404404
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 &
410410

411411
script:
412412
- echo "--enable-option-checking=fatal" >> $HOME/.php-build/share/php-build/default_configure_options
@@ -441,7 +441,7 @@ after_failure:
441441
addons:
442442
artifacts:
443443
paths:
444-
- $LSB_RELEASE/
444+
- $LSB_RELEASE/
445445
target_paths: /binaries/$OS_NAME/$LSB_RELEASE/$ARCH
446446
apt:
447447
packages:

0 commit comments

Comments
 (0)