-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
107 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
zend_extension="/usr/local/lib/php/extensions/no-debug-non-zts-20160303/xdebug.so" | ||
xdebug.cli_color=1 | ||
xdebug.remote_enable=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
TRAVIS_PHP_VERSION=${TRAVIS_PHP_VERSION-5.6} | ||
SYMFONY_VERSION=${SYMFONY_VERSION-2.3.*} | ||
ENABLE_CURL=${ENABLE_CURL-false} | ||
GUZZLE_VERSION=${GUZZLE_VERSION-6.*} | ||
COMPOSER_PREFER_LOWEST=${COMPOSER_PREFER_LOWEST-false} | ||
DOCKER_BUILD=${DOCKER_BUILD-false} | ||
|
||
if [ "$DOCKER_BUILD" = true ]; then | ||
cp .env.dist .env | ||
|
||
docker-compose build | ||
docker-compose run --rm php composer update --prefer-source | ||
|
||
exit | ||
fi | ||
|
||
if [ "$TRAVIS_PHP_VERSION" = 5.* ]; then | ||
printf "\n" | pecl install propro-1.0.2 | ||
printf "\n" | pecl install raphf-1.1.2 | ||
printf "\n" | pecl install pecl_http-2.5.6 | ||
fi | ||
|
||
if [[ "$TRAVIS_PHP_VERSION" = 7.* ]]; then | ||
printf "\n" | pecl install propro | ||
printf "\n" | pecl install raphf | ||
printf "\n" | pecl install pecl_http | ||
fi | ||
|
||
if [ "$ENABLE_CURL" = false ]; then | ||
mkdir -p ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d | ||
echo "disable_functions = curl_init" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini | ||
fi | ||
|
||
if [ "$TRAVIS_PHP_VERSION" = "5.6" ]; then | ||
echo "always_populate_raw_post_data = -1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini | ||
fi | ||
|
||
php -S 127.0.0.1 -t tests/Fixtures > /dev/null 2>&1 & | ||
|
||
if [ ! "$GUZZLE_VERSION" = "6.*" ]; then | ||
composer require --no-update --dev guzzlehttp/guzzle:${GUZZLE_VERSION} | ||
fi | ||
|
||
composer remove --no-update --dev friendsofphp/php-cs-fixer | ||
|
||
composer update --prefer-source `if [ "$COMPOSER_PREFER_LOWEST" = true ]; then echo "--prefer-lowest --prefer-stable"; fi` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
DOCKER_BUILD=${DOCKER_BUILD-false} | ||
|
||
if [ "$DOCKER_BUILD" = false ]; then | ||
vendor/bin/phpunit --configuration phpunit.travis.xml --coverage-clover build/clover.xml | ||
fi | ||
|
||
if [ "$DOCKER_BUILD" = true ]; then | ||
docker-compose run --rm php vendor/bin/phpunit | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
DOCKER_BUILD=${DOCKER_BUILD-false} | ||
|
||
if [ "$DOCKER_BUILD" = false ]; then | ||
sed -i "/^disable_functions =.*$/d" ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini | ||
wget https://scrutinizer-ci.com/ocular.phar | ||
php ocular.phar code-coverage:upload --format=php-clover build/clover.xml | ||
fi |