fix gitlab-ci

This commit is contained in:
Julien Fastré 2023-02-17 22:05:21 +01:00
parent c0526533cc
commit 610f129cae
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
3 changed files with 4 additions and 5 deletions

1
.gitignore vendored
View File

@ -4,7 +4,6 @@ composer.phar
composer.lock composer.lock
docs/build/ docs/build/
node_modules/* node_modules/*
.php_cs.cache
.cache/* .cache/*
###> symfony/framework-bundle ### ###> symfony/framework-bundle ###

View File

@ -5,7 +5,6 @@ cache:
paths: paths:
- tests/app/vendor/ - tests/app/vendor/
- .cache - .cache
- .php_cs.cache
# Bring in any services we need http://docs.gitlab.com/ee/ci/docker/using_docker_images.html#what-is-a-service # Bring in any services we need http://docs.gitlab.com/ee/ci/docker/using_docker_images.html#what-is-a-service
# See http://docs.gitlab.com/ee/ci/services/README.html for examples. # See http://docs.gitlab.com/ee/ci/services/README.html for examples.
@ -61,7 +60,7 @@ code_style:
- bin/grumphp run --tasks=phpcsfixer - bin/grumphp run --tasks=phpcsfixer
cache: cache:
paths: paths:
- .php_cs.cache - .cache/
artifacts: artifacts:
expire_in: 30 min expire_in: 30 min
paths: paths:
@ -74,6 +73,7 @@ phpstan_tests:
script: script:
- bin/phpstan - bin/phpstan
cache: cache:
paths:
- .cache/ - .cache/
artifacts: artifacts:
expire_in: 30 min expire_in: 30 min

View File

@ -24,7 +24,7 @@ $config = new PhpCsFixer\Config();
$config $config
->setFinder($finder) ->setFinder($finder)
->setRiskyAllowed(true) ->setRiskyAllowed(true)
->setCacheFile('.php_cs.cache') ->setCacheFile('.cache/php-cs-fixer.cache')
->setUsingCache(true) ->setUsingCache(true)
; ;