Minor improvements to CI config

This commit is contained in:
Kamil Kokot
2019-05-17 17:11:27 +08:00
parent 4473ba5b79
commit 2c3d938675
2 changed files with 18 additions and 6 deletions

View File

@@ -1,9 +1,9 @@
language: php language: php
php: php:
- 7.1 - '7.1'
- 7.2 - '7.2'
- 7.3 - '7.3'
env: env:
- SYMFONY_VERSION=3.4.* - SYMFONY_VERSION=3.4.*
@@ -22,11 +22,10 @@ install:
- composer require symfony/http-kernel:${SYMFONY_VERSION} --no-update --no-scripts --prefer-dist - composer require symfony/http-kernel:${SYMFONY_VERSION} --no-update --no-scripts --prefer-dist
- composer require symfony/proxy-manager-bridge:${SYMFONY_VERSION} --no-update --no-scripts --prefer-dist - composer require symfony/proxy-manager-bridge:${SYMFONY_VERSION} --no-update --no-scripts --prefer-dist
- composer require --dev symfony/framework-bundle:${SYMFONY_VERSION} --no-update --no-scripts --prefer-dist - composer require --dev symfony/framework-bundle:${SYMFONY_VERSION} --no-update --no-scripts --prefer-dist
- composer require --dev symfony/yaml:${SYMFONY_VERSION} --no-update --no-scripts --prefer-dist
- composer update --prefer-dist - composer update --prefer-dist
script: script:
- composer validate --strict - composer check
- vendor/bin/phpstan analyse -c phpstan.neon -l max src -vvv
- vendor/bin/behat -f progress --strict -vvv --no-interaction - vendor/bin/behat -f progress --strict -vvv --no-interaction

View File

@@ -40,6 +40,19 @@
"config": { "config": {
"sort-packages": true "sort-packages": true
}, },
"scripts": {
"check": [
"composer validate --ansi --strict",
"@analyse"
],
"fix": [
"vendor/bin/ecs check --ansi --no-progress-bar src tests --fix"
],
"analyse": [
"vendor/bin/ecs check --ansi --no-progress-bar src tests",
"vendor/bin/phpstan analyse --ansi --no-progress -c phpstan.neon -l max src"
]
},
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "2.0-dev" "dev-master": "2.0-dev"