Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
ZF3 compatibility, PHP5.5 support dropped
- Loading branch information
1 parent
6b1959d
commit 60f2fa7
Showing
12 changed files
with
4,146 additions
and
91 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 |
---|---|---|
@@ -1,7 +1,5 @@ | ||
.idea | ||
vendor | ||
composer.lock | ||
composer.phar | ||
.idea/ | ||
vendor/ | ||
phpunit.xml | ||
phpmd.xml | ||
phpdox.xml | ||
.project/ | ||
nbproject/ |
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,23 +1,77 @@ | ||
sudo: false | ||
|
||
language: php | ||
|
||
php: | ||
- 5.5 | ||
- 5.6 | ||
- 7 | ||
- hhvm | ||
cache: | ||
directories: | ||
- $HOME/.composer/cache | ||
- vendor | ||
|
||
env: | ||
global: | ||
- COMPOSER_ARGS="--no-interaction" | ||
- LATEST_DEPS="zendframework/zend-mvc-console" | ||
|
||
matrix: | ||
fast_finish: true | ||
include: | ||
- php: 5.6 | ||
env: | ||
- DEPS=lowest | ||
- php: 5.6 | ||
env: | ||
- DEPS=locked | ||
- TEST_COVERAGE=true | ||
- php: 5.6 | ||
env: | ||
- DEPS=latest | ||
- php: 7 | ||
env: | ||
- DEPS=lowest | ||
- php: 7 | ||
env: | ||
- DEPS=locked | ||
- CS_CHECK=true | ||
- php: 7 | ||
env: | ||
- DEPS=latest | ||
- php: nightly | ||
env: | ||
- DEPS=lowest | ||
- php: nightly | ||
env: | ||
- DEPS=locked | ||
- php: nightly | ||
env: | ||
- DEPS=latest | ||
- php: hhvm | ||
env: | ||
- DEPS=lowest | ||
- php: hhvm | ||
env: | ||
- DEPS=locked | ||
- php: hhvm | ||
env: | ||
- DEPS=latest | ||
allow_failures: | ||
- php: nightly | ||
- php: hhvm | ||
|
||
before_script: | ||
- composer update --prefer-dist | ||
before_install: | ||
- travis_retry composer self-update | ||
|
||
install: | ||
- if [[ $DEPS == 'latest' ]]; then travis_retry composer require --dev --no-update $COMPOSER_ARGS $LATEST_DEPS ; fi | ||
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi | ||
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi | ||
- travis_retry composer install $COMPOSER_ARGS | ||
- composer show | ||
|
||
script: | ||
- ./vendor/bin/phpunit --coverage-clover ./build/clover.xml | ||
- if [ $TRAVIS_PHP_VERSION != 'hhvm' ] && [ $TRAVIS_PHP_VERSION != '7' ]; then php build/coverage-checker.php build/clover.xml 70; fi | ||
- ./vendor/bin/phpcs --standard=PSR2 ./src/ ./tests/ | ||
- if [[ $TEST_COVERAGE == 'true' ]]; then ./vendor/bin/phpunit --coverage-clover ./build/clover.xml ; else ./vendor/bin/phpunit ; fi | ||
- if [[ $TEST_COVERAGE == 'true' ]]; then php build/coverage-checker.php build/clover.xml 70 ; fi | ||
- if [[ $CHECK_CS == 'true' ]]; then ./vendor/bin/phpcs --standard=PSR2 ./src/ ./tests/ ./config/ ; fi | ||
|
||
after_script: | ||
- if [ $TRAVIS_PHP_VERSION != 'hhvm' ] && [ $TRAVIS_PHP_VERSION != '7' ]; then wget https://scrutinizer-ci.com/ocular.phar; fi | ||
- if [ $TRAVIS_PHP_VERSION != 'hhvm' ] && [ $TRAVIS_PHP_VERSION != '7' ]; then php ocular.phar code-coverage:upload --format=php-clover ./build/clover.xml; fi | ||
- if [[ $TEST_COVERAGE == 'true' ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi | ||
- if [[ $TEST_COVERAGE == 'true' ]]; then php ocular.phar code-coverage:upload --format=php-clover ./build/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
Oops, something went wrong.