File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 - 7.1
1010
1111before_install :
12+ - sudo ln -s /home/travis/.phpenv/versions/$(phpenv version-name)/bin/phpize /usr/bin/
13+ - sudo ln -s /home/travis/.phpenv/versions/$(phpenv version-name)/bin/php-config /usr/bin/
1214 - export PHP_MAJOR="$(echo $TRAVIS_PHP_VERSION | cut -d '.' -f 1,2)"
1315
1416install :
1517 - travis_retry composer self-update
1618 - travis_retry composer install --prefer-source --no-interaction --ignore-platform-reqs
19+ - sudo apt-get -qq update
20+ - bash build-ci/install_prereqs_$PHP_MAJOR.sh
1721 - php -m
1822
23+ before_script :
24+ - ulimit -c unlimited -S || true
25+ - echo '/tmp/core_%e.%p' | sudo tee /proc/sys/kernel/core_pattern &> /dev/null
26+
1927script :
2028 - vendor/bin/phpunit -d memory_limit=1024M --coverage-text --coverage-clover=coverage.clover
2129
2230after_script :
2331 - if [ "$TRAVIS_PHP_VERSION" = "7.1" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
2432 - if [ "$TRAVIS_PHP_VERSION" = "7.1" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi
33+
34+ after_failure :
35+ - bash build-ci/install_failure.sh
36+
37+ addons :
38+ apt :
39+ packages :
40+ - gdb
Original file line number Diff line number Diff line change 1+ extension =eio.so
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ #
3+ # This source file is subject to the MIT License that is bundled
4+ # with this package in the MIT license.
5+
6+ shopt -s nullglob
7+ export LC_ALL=C
8+
9+ for i in /tmp/core_* .* ; do
10+ if [ -f " $i " -a " $( file " $i " | grep -o ' core file' ) " ]; then
11+ gdb -q $( phpenv which php) " $i " << EOF
12+ set pagination 0
13+ backtrace full
14+ info registers
15+ x/16i \$ pc
16+ thread apply all backtrace
17+ quit
18+ EOF
19+ fi
20+ done
21+
22+ $( phpenv which php) -m
23+ $( phpenv which php) -i
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ #
3+ # This source file is subject to the MIT License that is bundled
4+ # with this package in the MIT license.
5+
6+ CURRENT_DIR=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd )
7+ TRAVIS_BUILD_DIR=" ${TRAVIS_BUILD_DIR:- $(dirname $(dirname $CURRENT_DIR ))} "
8+
9+ install_eio () {
10+ git clone -q https://github.com/rosmanov/pecl-eio -b master /tmp/eio
11+ cd /tmp/eio
12+
13+ phpize & > /dev/null
14+ ./configure & > /dev/null
15+
16+ make --silent -j4 & > /dev/null
17+ make --silent install
18+
19+ if [ -z $( php -m | grep eio) ]; then
20+ phpenv config-add " ${TRAVIS_BUILD_DIR} /build-ci/ini/eio.ini"
21+ fi
22+ }
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ #
3+ # This source file is subject to the MIT License that is bundled
4+ # with this package in the MIT license.
5+
6+ CURRENT_DIR=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd )
7+ TRAVIS_BUILD_DIR=" ${TRAVIS_BUILD_DIR:- $(dirname $(dirname $CURRENT_DIR ))} "
8+
9+ install_eio () {
10+ git clone -q https://github.com/rosmanov/pecl-eio -b master /tmp/eio
11+ cd /tmp/eio
12+
13+ phpize & > /dev/null
14+ ./configure & > /dev/null
15+
16+ make --silent -j4 & > /dev/null
17+ make --silent install
18+
19+ if [ -z $( php -m | grep eio) ]; then
20+ phpenv config-add " ${TRAVIS_BUILD_DIR} /build-ci/ini/eio.ini"
21+ fi
22+ }
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ #
3+ # This source file is subject to the MIT License that is bundled
4+ # with this package in the MIT license.
5+
6+ CURRENT_DIR=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd )
7+ TRAVIS_BUILD_DIR=" ${TRAVIS_BUILD_DIR:- $(dirname $(dirname $CURRENT_DIR ))} "
8+
9+ pecl channel-update pecl.php.net || true
10+ echo ` whoami` " :1234" | sudo chpasswd
11+
12+ enable_extension () {
13+ if [ -z $( php -m | grep " ${1} " ) ] && [ -f " ${TRAVIS_BUILD_DIR} /build-ci/ini/${1} .ini" ]; then
14+ phpenv config-add " ${TRAVIS_BUILD_DIR} /build-ci/ini/${1} .ini"
15+ fi
16+ }
17+
18+ install_extension () {
19+ INSTALLED=$( pecl list " ${1} " | grep ' not installed' )
20+
21+ if [ -z " ${INSTALLED} " ]; then
22+ printf " \n" | pecl upgrade " ${1} " & > /dev/null
23+ else
24+ printf " \n" | pecl install " ${1} " & > /dev/null
25+ fi
26+
27+ enable_extension " ${1} "
28+ }
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ #
3+ # This source file is subject to the MIT License that is bundled
4+ # with this package in the MIT license.
5+
6+ CURRENT_DIR=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd )
7+ TRAVIS_BUILD_DIR=" ${TRAVIS_BUILD_DIR:- $(dirname $(dirname $CURRENT_DIR ))} "
8+
9+ source ${TRAVIS_BUILD_DIR} /build-ci/install_php_common.sh
10+ source ${TRAVIS_BUILD_DIR} /build-ci/install_php_5.sh
11+
12+ install_eio
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ #
3+ # This source file is subject to the MIT License that is bundled
4+ # with this package in the MIT license.
5+
6+ CURRENT_DIR=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd )
7+ TRAVIS_BUILD_DIR=" ${TRAVIS_BUILD_DIR:- $(dirname $(dirname $CURRENT_DIR ))} "
8+
9+ source ${TRAVIS_BUILD_DIR} /build-ci/install_php_common.sh
10+ source ${TRAVIS_BUILD_DIR} /build-ci/install_php_7.sh
11+
12+ install_eio
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ #
3+ # This source file is subject to the MIT License that is bundled
4+ # with this package in the MIT license.
5+
6+ CURRENT_DIR=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd )
7+ TRAVIS_BUILD_DIR=" ${TRAVIS_BUILD_DIR:- $(dirname $(dirname $CURRENT_DIR ))} "
8+
9+ source ${TRAVIS_BUILD_DIR} /build-ci/install_php_common.sh
10+ source ${TRAVIS_BUILD_DIR} /build-ci/install_php_7.sh
11+
12+ install_eio
Original file line number Diff line number Diff line change 3131 "require-dev" : {
3232 "phpunit/phpunit" : " >=4.8.0 <5.4.0"
3333 },
34+ "suggest" : {
35+ "ext-eio" : " ^1.2"
36+ },
3437 "autoload" : {
3538 "psr-4" : {
3639 "Dazzle\\ Filesystem\\ " : " src/Filesystem" ,
You can’t perform that action at this time.
0 commit comments