-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
0 parents
commit 09724a7
Showing
57 changed files
with
3,886 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
github: [bardoqi] |
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,3 @@ | ||
vendor/ | ||
composer.lock | ||
phpunit.xml |
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,133 @@ | ||
language: php | ||
|
||
matrix: | ||
include: | ||
- php: 5.4 | ||
- php: 5.5 | ||
- php: 5.6 | ||
- php: hhvm | ||
allow_failures: | ||
- php: hhvm | ||
|
||
services: | ||
- mongodb | ||
- redis-server | ||
|
||
before_install: | ||
# gearman | ||
- > | ||
if [[ $TRAVIS_PHP_VERSION != hhvm* ]]; then | ||
sudo apt-get install python-software-properties; | ||
sudo add-apt-repository -y ppa:gearman-developers/ppa; | ||
fi | ||
# tarantool (http://stable.tarantool.org/download.html) | ||
- > | ||
if [[ $TRAVIS_PHP_VERSION != hhvm* ]]; then | ||
wget http://tarantool.org/dist/public.key; | ||
sudo apt-key add ./public.key; | ||
release=`lsb_release -c -s`; | ||
echo "deb http://tarantool.org/dist/stable/ubuntu/ $release main" | sudo tee -a /etc/apt/sources.list.d/tarantool.list; | ||
echo "deb-src http://tarantool.org/dist/stable/ubuntu/ $release main" | sudo tee -a /etc/apt/sources.list.d/tarantool.list; | ||
fi | ||
- sudo apt-get update | ||
|
||
install: | ||
# gearman | ||
- > | ||
if [[ $TRAVIS_PHP_VERSION != hhvm* ]]; then | ||
sudo apt-get install gearman-job-server libgearman-dev; | ||
pecl install gearman; | ||
sudo service gearman-job-server stop; | ||
sudo gearmand -d; | ||
fi | ||
# tarantool-lts | ||
- > | ||
if [[ $TRAVIS_PHP_VERSION != hhvm* ]]; then | ||
sudo apt-get install tarantool-lts tarantool-lts-client; | ||
sudo wget https://raw.githubusercontent.com/tarantool/queue/stable/init.lua; | ||
sudo wget https://raw.githubusercontent.com/tarantool/queue/stable/tarantool.cfg -O /etc/tarantool/instances.enabled/queue.cfg && echo "script_dir = "`pwd` | sudo tee -a /etc/tarantool/instances.enabled/queue.cfg; | ||
sudo service tarantool-lts restart; | ||
fi | ||
#tarantool-php | ||
- > | ||
if [[ $TRAVIS_PHP_VERSION != hhvm* ]]; then | ||
git clone https://github.com/tarantool/tarantool-php.git; | ||
cd ./tarantool-php; | ||
git checkout stable; | ||
phpize; | ||
./configure; | ||
make; | ||
sudo make install; | ||
cd ..; | ||
fi | ||
# beanstalk | ||
- sudo apt-get install -y beanstalkd | ||
- sudo beanstalkd -d -l 127.0.0.1 -p 11300 | ||
|
||
# uopz | ||
- > | ||
if [[ $TRAVIS_PHP_VERSION != hhvm* ]]; then | ||
pecl install uopz; | ||
fi | ||
# php.ini | ||
- > | ||
if [[ $TRAVIS_PHP_VERSION != hhvm* ]]; then | ||
printf " | ||
extension = mongo.so\n | ||
extension = redis.so\n | ||
extension = tarantool.so\n | ||
" >> ~/.phpenv/versions/$TRAVIS_PHP_VERSION/etc/php.ini; | ||
fi | ||
before_script: | ||
- mysql -e 'create database phive_tests;' | ||
- psql -c 'create database phive_tests;' -U postgres | ||
|
||
# Mongofill | ||
- > | ||
if [[ $TRAVIS_PHP_VERSION == hhvm* ]]; then | ||
composer require mongofill/mongofill:dev-master; | ||
fi | ||
- composer install | ||
|
||
# gearman workers | ||
- > | ||
if [[ $TRAVIS_PHP_VERSION != hhvm* ]]; then | ||
(php tests/worker.php >> worker.log &); | ||
(php tests/worker.php >> worker.log &); | ||
(php tests/worker.php >> worker.log &); | ||
(php tests/worker.php >> worker.log &); | ||
fi | ||
script: | ||
- > | ||
if [[ $TRAVIS_PHP_VERSION == 5.6 ]]; then | ||
phpunit --coverage-clover coverage.clover; | ||
else | ||
phpunit; | ||
fi | ||
- > | ||
if [[ $TRAVIS_PHP_VERSION != hhvm* ]]; then | ||
phpunit --group concurrency; | ||
fi | ||
after_script: | ||
- > | ||
if [[ $TRAVIS_PHP_VERSION != hhvm* ]]; then | ||
cat worker.log; | ||
fi | ||
# code-coverage for scrutinizer-ci | ||
- > | ||
if [[ -f coverage.clover ]]; then | ||
wget https://scrutinizer-ci.com/ocular.phar; | ||
php ocular.phar code-coverage:upload --format=php-clover coverage.clover; | ||
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,19 @@ | ||
Copyright (c) 2012-2020 Eugene Leonovich | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is furnished | ||
to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
Oops, something went wrong.