Skip to content

Commit 8051eb5

Browse files
committed
Fix scrutinizer and codecov tags
1 parent 9478f39 commit 8051eb5

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

.github/workflows/CI.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,14 @@ jobs:
9898
with:
9999
file: "build/coverage-phpunit/clover-unit.xml"
100100
name: "unit-tests-${{ matrix.php-version }}-${{ matrix.symfony-version }}"
101-
flags: "unit-tests,php-${{ matrix.php-version }},sf-${{ matrix.symfony-version }}+"
101+
flags: "unit-tests,php-${{ matrix.php-version }},sf-${{ matrix.symfony-version }}"
102102
fail_ci_if_error: true
103103
move_coverage_to_trash: true
104104
- name: Upload functional tests coverage to codecov
105105
uses: codecov/codecov-action@v2
106106
with:
107107
name: "functional-tests-${{ matrix.php-version }}-${{ matrix.symfony-version }}"
108-
flags: "functional-tests,php-${{ matrix.php-version }},sf-${{ matrix.symfony-version }}+"
108+
flags: "functional-tests,php-${{ matrix.php-version }},sf-${{ matrix.symfony-version }}"
109109
fail_ci_if_error: true
110110

111111
nightly-tests:
@@ -171,7 +171,7 @@ jobs:
171171
with:
172172
file: "build/coverage-phpunit/clover-unit.xml"
173173
name: "unit-tests-${{ matrix.php-version }}-${{ matrix.symfony-version }}"
174-
flags: "nightly,unit-tests,php-${{ matrix.php-version }},sf-${{ matrix.symfony-version }}+"
174+
flags: "nightly,unit-tests,php-${{ matrix.php-version }},sf-${{ matrix.symfony-version }}"
175175
fail_ci_if_error: false
176176
move_coverage_to_trash: true
177177
- name: Upload functional tests coverage to codecov
@@ -180,5 +180,5 @@ jobs:
180180
with:
181181
file: "build/coverage-phpunit/clover-functional.xml,build/coverage-behat/clover.xml"
182182
name: "functional-tests-${{ matrix.php-version }}-${{ matrix.symfony-version }}"
183-
flags: "nightly,functional-tests,php-${{ matrix.php-version }},sf-${{ matrix.symfony-version }}+"
183+
flags: "nightly,functional-tests,php-${{ matrix.php-version }},sf-${{ matrix.symfony-version }}"
184184
fail_ci_if_error: false

.scrutinizer.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,13 @@ build:
2222
- command: make scrutinizer-phpunit
2323
idle_timeout: 1200
2424
coverage:
25-
file: 'build/coverage/clover.xml'
25+
file: 'build/coverage-phpunit/scrutinizer.xml'
2626
format: 'php-clover'
27+
- command: make scrutinizer-behat
28+
idle_timeout: 1200
29+
coverage:
30+
file: 'build/coverage-behat/clover.xml'
31+
format: 'php-clover'
2732
- command: php-scrutinizer-run --enable-security-analysis
2833
title: Scrutinizer checks
2934

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ codestyle: create-build-directories
9999
./vendor/bin/phpcs ${PHPCS_DISABLE_WARNING_OPTION} --standard=phpcs.xml.dist ${PHPCS_COLOR_OPTION} ${PHPCS_REPORT_FILE_OPTION} --report=${PHPCS_REPORT_STYLE}
100100

101101
scrutinizer-phpunit:
102-
./vendor/bin/phpunit ${PHPUNIT_COLOR_OPTION} ${PHPUNIT_OUTPUT_STYLE_OPTION} ${PHPUNIT_COVERAGE_OPTION}
102+
XDEBUG_MODE=coverage ./vendor/bin/phpunit ${PHPUNIT_COLOR_OPTION} ${PHPUNIT_OUTPUT_STYLE_OPTION} --coverage-clover build/coverage-phpunit/scrutinizer.xml
103103

104104
scrutinizer-behat:
105-
./vendor/bin/behat ${BEHAT_COLOR_OPTION} ${BEHAT_OUTPUT_STYLE_OPTION} ${BEHAT_COVERAGE_OPTION} --no-snippets
105+
XDEBUG_MODE=coverage ./vendor/bin/behat ${BEHAT_COLOR_OPTION} ${BEHAT_OUTPUT_STYLE_OPTION} --profile coverage-clover --no-snippets
106106

107107

108108
# Internal commands

0 commit comments

Comments
 (0)