Skip to content

Commit e03e25f

Browse files
committed
Fix coverage
1 parent 2f609b8 commit e03e25f

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

behat.yml.dist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,5 @@ coverage:
5757
- 'CoverageContext'
5858
- 'Behat\MinkExtension\Context\MinkContext'
5959
- 'Behatch\Context\RestContext'
60+
filters:
61+
tags: ~@postgres

brigade.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const coverage = (event, project) => {
1212
`composer require --dev --no-update 'phpunit/php-code-coverage:^5.2.2'`,
1313
'composer update --prefer-dist --no-progress --no-suggest --ansi',
1414
'phpdbg -qrr vendor/bin/phpunit --coverage-php build/cov/coverage-phpunit.cov',
15-
`for f in $(find features -name '*.feature'); do FEATURE=\${f//\\//_} phpdbg -qrr vendor/bin/behat --format=progress --profile coverage $f || exit $?; done`,
15+
'phpdbg -qrr vendor/bin/behat --profile=coverage --suite=default --format=progress',
1616
'phpdbg -qrr $(which phpcov) merge --clover build/logs/clover.xml build/cov;',
1717
'coveralls -v',
1818
];
@@ -25,11 +25,11 @@ const coverage = (event, project) => {
2525

2626
const gh = JSON.parse(event.payload);
2727
if (gh.pull_request) {
28-
job.env.CI_PULL_REQUEST = gh.pull_request.number.toString();
29-
job.env.CI_BRANCH = gh.pull_request.base.ref;
28+
job.env.CI_PULL_REQUEST = gh.pull_request.number.toString();
29+
job.env.CI_BRANCH = gh.pull_request.base.ref;
3030
} else if (gh.ref) {
31-
const parts = gh.ref.split('/');
32-
job.env.CI_BRANCH = parts[parts.length - 1];
31+
const parts = gh.ref.split('/');
32+
job.env.CI_BRANCH = parts[parts.length - 1];
3333
}
3434

3535
job.run();

0 commit comments

Comments
 (0)