phpro / grumphp

A PHP code-quality tool
MIT License
4.11k stars 429 forks source link

Pre push testsuites #1136

Open saidatom opened 1 month ago

saidatom commented 1 month ago
Q A
Branch master for features and deprecations
Bug fix? no
New feature? yes
Documented? yes
Fixed tickets #1135

It is an experiment to get the https://github.com/phpro/grumphp/issues/1135 working, actually there is the problem that if we have a grumphp.yml like that:

grumphp:
  process_timeout: 480
  tasks:
    phpcs:
      standard: PSR2
      ignore_patterns:
        - "spec/*Spec.php"
        - "test/*.php"
        - "stubs/*.php"
    phpspec:
      format: progress
      verbose: true
  testsuites:
    git_pre_push:
      tasks: [phpcs, phpspec]
  environment:
    paths:
      - tools

New Task Checklist: