Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit 7e36bff

Browse files
committed
Merge branch 'master' into t/couchdb-and-mysql-check
2 parents 6fd896a + 91b9b17 commit 7e36bff

25 files changed

+1870
-74
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
.*.sw*
77
.*.un~
88
build/
9-
composer.lock
109
nbproject
1110
tmp/
1211
vendor/
12+
composer.phar
13+
php-cs-fixer.phar

.travis.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ services:
44
- redis-server
55
- rabbitmq
66

7+
sudo: false
8+
9+
cache:
10+
directories:
11+
- $HOME/.composer/cache
12+
713
php:
814
- 5.3
915
- 5.3.3
@@ -12,14 +18,16 @@ php:
1218
- 5.6
1319

1420
before_install:
15-
- composer self-update
16-
- if [[ "$TRAVIS_PHP_VERSION" != "5.3" && "$TRAVIS_PHP_VERSION" != "5.3.3" ]]; then composer require --no-update guzzlehttp/guzzle:~4; fi
17-
- composer install --prefer-source
18-
- wget http://cs.sensiolabs.org/get/php-cs-fixer.phar
21+
- composer self-update
22+
- phpenv config-rm xdebug.ini
23+
- if [[ "$TRAVIS_PHP_VERSION" != "5.3" && "$TRAVIS_PHP_VERSION" != "5.3.3" ]]; then composer require --no-update guzzlehttp/guzzle:~4; fi
24+
- if [ "$TRAVIS_PHP_VERSION" = "5.6" ]; then composer require --no-update fabpot/php-cs-fixer:1.9.*; fi
25+
26+
install: composer update $COMPOSER_FLAGS --prefer-dist
1927

2028
script:
21-
- phpunit -c ./tests/ --coverage-text
22-
- output=$(php php-cs-fixer.phar fix -v --dry-run --level=psr2 .); if [[ $output ]]; then while read -r line; do echo -e "\e[00;31m$line\e[00m"; done <<< "$output"; false; fi;
29+
- ./vendor/bin/phpunit -c ./tests/ --coverage-text
30+
- if [ "$TRAVIS_PHP_VERSION" = "5.6" ]; then ./vendor/bin/php-cs-fixer fix -v --dry-run --level=psr2 .; fi
2331

2432
notifications:
2533
irc: "irc.freenode.org#zftalk.dev"

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"guzzle/http" : "3.*",
2525
"guzzle/plugin-mock" : "3.*",
2626
"videlalvaro/php-amqplib" : "2.*",
27-
"predis/predis" : "0.8.*"
27+
"predis/predis" : "0.8.*",
28+
"phpunit/phpunit" : "4.7.*"
2829
},
2930
"suggest" : {
3031
"ext-bcmath" : "Required by Check\\CpuPerformance",

0 commit comments

Comments
 (0)