-
Notifications
You must be signed in to change notification settings - Fork 461
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract travis-ci scripts to bash script files; Add a PHP7 build targ…
…et; fix redis/mongo exts
- Loading branch information
Showing
7 changed files
with
64 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
if [[ "$TRAVIS_PHP_VERSION" != "hhvm" && "$TRAVIS_PHP_VERSION" != "hhvm-nightly" ]]; then | ||
vendor/bin/coveralls -v | ||
fi | ||
|
||
if [[ "$TRAVIS_PHP_VERSION" == "5.6" ]]; then | ||
wget https://scrutinizer-ci.com/ocular.phar | ||
fi | ||
|
||
if [[ "$TRAVIS_PHP_VERSION" == "5.6" ]]; then | ||
php ocular.phar code-coverage:upload --format=php-clover ./build/logs/clover.xml | ||
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,21 @@ | ||
#!/bin/bash | ||
if [[ "$TRAVIS_PHP_VERSION" == "5.3.3" ]]; then | ||
pushd $HOME | ||
git clone https://github.com/php/php-src.git | ||
pushd php-src | ||
./buildconf -f | ||
./configure --with-curl --prefix=$HOME/.phpenv/versions/7 --quiet | ||
make --quiet | ||
make install | ||
phpenv global 7 | ||
popd | ||
popd | ||
php --version | ||
echo Travis PHP Version is $TRAVIS_PHP_VERSION | ||
wget http://getcomposer.org/composer.phar | ||
mkdir $PWD/phar | ||
mv composer.phar $PWD/phar/composer | ||
chmod +x $PWD/phar/composer | ||
else | ||
composer self-update | ||
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,7 @@ | ||
#!/bin/bash | ||
if [[ "$TRAVIS_PHP_VERSION" != "hhvm" \ | ||
&& "$TRAVIS_PHP_VERSION" != "hhvm-nightly" \ | ||
&& "$TRAVIS_PHP_VERSION" != "5.3.3" ]]; then | ||
phpenv config-add ./travis/extra.ini | ||
fi | ||
phpenv rehash |
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,2 @@ | ||
extension = "mongo.so" | ||
extension = "redis.so" |
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,6 @@ | ||
#!/bin/bash | ||
export PATH=$PWD/phar:$PATH | ||
if [[ "$TRAVIS_PHP_VERSION" == "5.3.3" ]]; then | ||
echo PATH is $PATH | ||
fi | ||
composer install -n |
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,8 @@ | ||
#!/bin/bash | ||
if [[ "$TRAVIS_PHP_VERSION" != "hhvm" && "$TRAVIS_PHP_VERSION" != "hhvm-nightly" ]]; then | ||
vendor/bin/phpunit --coverage-text --coverage-clover ./build/logs/clover.xml | ||
fi | ||
|
||
if [[ "$TRAVIS_PHP_VERSION" == "hhvm" || "$TRAVIS_PHP_VERSION" == "hhvm-nightly" ]]; then | ||
vendor/bin/phpunit | ||
fi |