dancryer / PHPCI

PHPCI is a free and open source continuous integration tool specifically designed for PHP.
BSD 2-Clause "Simplified" License
2.42k stars 442 forks source link

Ignoring phpci.yml file #530

Closed craigwillis85 closed 9 years ago

craigwillis85 commented 9 years ago

Hi

I have the folllowing phpci.yml

test:
  codeception:
    config: "codeception.yml"
    args: -vvv
  php_mess_detector:
    allowed_warnings: 0
  php_code_sniffer:
    standard: "PSR1,PSR2"
    allowed_errors: -1
    allow_warnings: -1
  php_loc:
  php_unit:
  php_docblock_checker:
    allowed_warnings: -1
  php_cpd:

When the build is run, I see the following plugins being ran:

RUNNING PLUGIN: \PHPCI\Plugin\PhpCodeSniffer RUNNING PLUGIN: \PHPCI\Plugin\PhpDocblockChecker RUNNING PLUGIN: \PHPCI\Plugin\PhpLoc RUNNING PLUGIN: \PHPCI\Plugin\PhpMessDetector

You can see I have codeception and php_cmd plugins defined.

Is there any reason why these are never called?

I have looked in Builder.php and var_dump'd out $stage in the foreach in execute(), which returned the following:

'test' =>
  array(4) {
    '\PHPCI\Plugin\PhpCodeSniffer' =>
    array(1) {
      'zero_config' =>
      bool(true)
    }
    '\PHPCI\Plugin\PhpDocblockChecker' =>
    array(1) {
      'zero_config' =>
      bool(true)
    }
    '\PHPCI\Plugin\PhpLoc' =>
    array(1) {
      'zero_config' =>
      bool(true)
    }
    '\PHPCI\Plugin\PhpMessDetector' =>
    array(1) {
      'zero_config' =>
      bool(true)
    }
  }

So it seems that these 4 plugins are the only ones that are ever run.

coincidentally, If I have an empty phpci.yml, these 4 plugins are still run, which seems to suggest that it is ignoring my phpci.yml

dancryer commented 9 years ago

Hi @craigwillis85 - Is this an open source project? I'd love to see how you've got it set up.

craigwillis85 commented 9 years ago

@dancryer - No, this is in a private project on Github.

What I did notice though, is If I copy content of the phpci.yml (with some minor changes) into the textarea when editing a project, e.g. (PHPCI build config for this project...) and then re-build, it seemed to pick up the changes, which is odd.

craigwillis85 commented 9 years ago

Seems to be resolved. Closing