|
| 1 | +filter: |
| 2 | + excluded_paths: |
| 3 | + - bin/* |
| 4 | + - vendor/* |
| 5 | + - tests/* |
| 6 | + - config/* |
| 7 | + - docs/* |
| 8 | + - public/* |
| 9 | + - tests/bootstrap.php |
| 10 | + dependency_paths: |
| 11 | + - vendor/* |
| 12 | + |
| 13 | +build_failure_conditions: |
| 14 | +- 'patches.label("Spacing").new.count > 1' # More than 1 new spacing patch |
| 15 | + |
| 16 | +- 'issues.label("coding-style").exists' # No coding style issues allowed |
| 17 | +- 'issues.label("coding-style").new.exists' # No new coding style issues allowed |
| 18 | + |
| 19 | +- 'issues.label("coding-style").new.count > 1' # More than 1 new coding style issues. |
| 20 | +- 'issues.severity(>= MAJOR).new.exists' # New issues of major or higher severity |
| 21 | + |
| 22 | +- 'project.metric("scrutinizer.quality", < 9)' # Code Quality Rating drops below 9 |
| 23 | + |
| 24 | +# Code Coverage decreased from previous inspection by more than 1% |
| 25 | +- 'project.metric_change("scrutinizer.test_coverage", < -0.1)' |
| 26 | + |
| 27 | +build: |
| 28 | + services: |
| 29 | + #mariadb: 10.1.40 |
| 30 | + environment: |
| 31 | + hosts: |
| 32 | + cake3.world-architects.com: '127.0.0.1' |
| 33 | + redis: true |
| 34 | + node: 10.16.0 |
| 35 | + php: |
| 36 | + version: '7.4' |
| 37 | + ini: |
| 38 | + phar.readonly: 'Off' |
| 39 | + #elasticsearch: '6' |
| 40 | + |
| 41 | + nodes: |
| 42 | + tests-php72: |
| 43 | + environment: |
| 44 | + php: |
| 45 | + version: '7.2' |
| 46 | + ini: |
| 47 | + phar.readonly: 'Off' |
| 48 | + tests: |
| 49 | + override: |
| 50 | + - phive --no-progress install --target ./bin --trust-gpg-keys 0x4AA394086372C20A,0x8E730BA25823D8B5,0x31C7E470E2138192,0x4AA394086372C20A,0x0F9684B8B16B7AB0 |
| 51 | + - composer self-update |
| 52 | + - composer --version |
| 53 | + - composer global require hirak/prestissimo --no-plugins |
| 54 | + - composer install --prefer-dist --no-interaction |
| 55 | + - npm install yarn -g |
| 56 | + - chmod -R +x ./bin |
| 57 | + - |
| 58 | + command: './bin/phpunit --coverage-clover=coverage.xml --bootstrap ./tests/bootstrap.php' |
| 59 | + coverage: |
| 60 | + file: 'coverage.xml' |
| 61 | + format: 'php-clover' |
| 62 | + |
| 63 | + tests-php73: |
| 64 | + environment: |
| 65 | + php: |
| 66 | + version: '7.2' |
| 67 | + ini: |
| 68 | + phar.readonly: 'Off' |
| 69 | + tests: |
| 70 | + override: |
| 71 | + - phive --no-progress install --target ./bin --trust-gpg-keys 0x4AA394086372C20A,0x8E730BA25823D8B5,0x31C7E470E2138192,0x4AA394086372C20A,0x0F9684B8B16B7AB0 |
| 72 | + - composer self-update |
| 73 | + - composer --version |
| 74 | + - composer global require hirak/prestissimo --no-plugins |
| 75 | + - composer install --prefer-dist --no-interaction |
| 76 | + - npm install yarn -g |
| 77 | + - chmod -R +x ./bin |
| 78 | + - |
| 79 | + command: './bin/phpunit --coverage-clover=coverage.xml --bootstrap ./tests/bootstrap.php' |
| 80 | + coverage: |
| 81 | + file: 'coverage.xml' |
| 82 | + format: 'php-clover' |
| 83 | + |
| 84 | + tests-php74: |
| 85 | + environment: |
| 86 | + php: |
| 87 | + version: '7.2' |
| 88 | + ini: |
| 89 | + phar.readonly: 'Off' |
| 90 | + tests: |
| 91 | + override: |
| 92 | + - phive --no-progress install --target ./bin --trust-gpg-keys 0x4AA394086372C20A,0x8E730BA25823D8B5,0x31C7E470E2138192,0x4AA394086372C20A,0x0F9684B8B16B7AB0 |
| 93 | + - composer self-update |
| 94 | + - composer --version |
| 95 | + - composer global require hirak/prestissimo --no-plugins |
| 96 | + - composer install --prefer-dist --no-interaction |
| 97 | + - npm install yarn -g |
| 98 | + - chmod -R +x ./bin |
| 99 | + - |
| 100 | + command: './bin/phpunit --coverage-clover=coverage.xml --bootstrap ./tests/bootstrap.php' |
| 101 | + coverage: |
| 102 | + file: 'coverage.xml' |
| 103 | + format: 'php-clover' |
| 104 | + |
| 105 | + analysis: |
| 106 | + tests: |
| 107 | + override: |
| 108 | + - php-scrutinizer-run --enable-security-analysis |
| 109 | + - phpcs-run --standard=./phpcs.xml ./src |
| 110 | + - phpcs-run --standard=./phpcs.xml ./plugins |
0 commit comments