Skip to content

Commit

Permalink
update tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangut committed Oct 8, 2017
1 parent 430b3b6 commit ff569d0
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ before_install:
install:
- if [[ "$TRAVIS_PHP_VERSION" != "5.6" ]]; then travis_retry composer require alcaeus/mongo-php-adapter $COMPOSER_GLOBAL_FLAGS --ignore-platform-reqs ; fi
- travis_retry composer update $COMPOSER_FLAGS --no-interaction --no-scripts --no-progress
- if [[ $TEST_VERSION == true ]]; then travis_retry composer require satooshi/php-coveralls:dev-master $COMPOSER_FLAGS --no-interaction --no-scripts --no-progress ; fi
- if [[ $TEST_VERSION ]]; then travis_retry composer require php-coveralls/php-coveralls $COMPOSER_FLAGS --no-interaction --no-scripts --no-progress ; fi

script:
- if [[ $TEST_VERSION == true ]]; then composer qa & composer phpunit-clover ; fi
Expand Down
32 changes: 27 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=5.6",
"php": "^5.6|^7.0",
"slim/slim": "^3.0",
"juliangut/doctrine-manager-builder": "^1.4"
},
"require-dev": {
"brainmaestro/composer-git-hooks": "^2.1",
"doctrine/orm": "^2.4",
"doctrine/mongodb-odm": "^1.1",
"doctrine/couchdb-odm": "dev-master",
Expand Down Expand Up @@ -57,20 +58,41 @@
"bin": [
],
"config": {
"preferred-install": "dist"
"preferred-install": "dist",
"sort-packages": true
},
"scripts": {
"phplint": "php -l src & php -l tests",
"cghooks": "cghooks",
"post-install-cmd": "cghooks add --ignore-lock",
"post-update-cmd": "cghooks update",
"php-lint": "php -l src && php -l tests",
"phpcs": "phpcs --standard=PSR2 src tests",
"phpcs-lint": "php-cs-fixer fix --dry-run --verbose",
"phpcpd": "phpcpd src",
"phpmd": "phpmd src text unusedcode,naming,design,controversial,codesize",
"phpunit": "phpunit",
"phpunit-coverage": "phpunit --coverage-html build/coverage",
"phpunit-clover": "phpunit --coverage-clover build/logs/clover.xml",
"qa": "composer phplint & composer phpcs & composer phpcs-lint & composer phpcpd & composer phpmd",
"qa": [
"@php-lint",
"@phpcs",
"@phpcs-lint",
"@phpcpd",
"@phpmd"
],
"reports": [
"@phpunit-coverage"
],
"fix": "php-cs-fixer fix --verbose",
"security": "composer outdated",
"test": "composer qa & composer phpunit"
"test": [
"@php-lint",
"@phpunit"
]
},
"extra": {
"hooks": {
"pre-commit": "composer qa && composer phpunit"
}
}
}

0 comments on commit ff569d0

Please sign in to comment.