Skip to content

Commit 633e198

Browse files
authored
Merge pull request #4 from facile-it/switch-to-codecov
Switch to Codecov
2 parents 0952653 + 8becf21 commit 633e198

File tree

7 files changed

+9
-15
lines changed

7 files changed

+9
-15
lines changed

.coveralls.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

.travis.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ stages:
1515
- Code style & static analysis
1616

1717
before_install:
18-
- phpenv config-rm xdebug.ini || echo "Unable to remove xDebug"
1918
- if [ "$SYMFONY_REQUIRE" != "" ]; then composer global require symfony/flex; fi
2019

2120
install:
2221
- composer update --no-interaction --no-suggest --prefer-dist --prefer-stable
2322

2423
script:
25-
- vendor/bin/phpunit
24+
- vendor/bin/phpunit --coverage-clover=build/coverage-report.xml
25+
- bash <(curl -s https://codecov.io/bash) -f build/coverage-report.xml
2626

2727
jobs:
2828
include:
@@ -40,13 +40,6 @@ jobs:
4040
SYMFONY_REQUIRE: 4.4
4141
- env:
4242
SYMFONY_REQUIRE: 5
43-
- name: Code coverage
44-
php: 7.3
45-
before_install: []
46-
script:
47-
- vendor/bin/phpunit --verbose --coverage-clover=build/logs/clover.xml
48-
after_success:
49-
- vendor/bin/php-coveralls -v
5043
- stage: Code style & static analysis
5144
name: PHP CS Fixer
5245
script: vendor/bin/php-cs-fixer fix --verbose --diff --dry-run

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
66
## Unreleased
77
* Fix Symfony 5 compatibility [#3](https://github.com/facile-it/symfony-functional-testcase/pull/3)
88
* Improve CI testing [#3](https://github.com/facile-it/symfony-functional-testcase/pull/3)
9+
* Increase PHPStan level to maximum (8) [0952653](https://github.com/facile-it/symfony-functional-testcase/commit/095265358f7494ed95cd0c4fc20fe6e38e5f72fe)
910

1011
## 0.1.2 [2020-02-24]
1112
### Added

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![Build status][Travis Master image]][Travis Master]
44
[![Latest Stable Version](https://poser.pugx.org/facile-it/symfony-functional-testcase/v/stable)](https://packagist.org/packages/facile-it/symfony-functional-testcase)
55
[![Latest Unstable Version](https://poser.pugx.org/facile-it/symfony-functional-testcase/v/unstable)](https://packagist.org/packages/facile-it/symfony-functional-testcase)
6-
[![Coverage Status](https://coveralls.io/repos/github/facile-it/symfony-functional-testcase/badge.svg)](https://coveralls.io/github/facile-it/symfony-functional-testcase)
6+
[![Codecov coverage status](https://codecov.io/gh/facile-it/symfony-functional-testcase/branch/master/graph/badge.svg)](https://codecov.io/gh/facile-it/symfony-functional-testcase)
77

88
This is a small base TestCase for PHPUnit functional tests in Symfony that provides a simple `getContainer()` helper,
99
alongside with some small caching to speed up the tests.

codecov.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
comment: false

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,18 @@
2626
"require-dev": {
2727
"facile-it/facile-coding-standard": "^0.3.1",
2828
"jangregor/phpstan-prophecy": "^0.6.2",
29-
"php-coveralls/php-coveralls": "^2.1",
3029
"phpstan/extension-installer": "^1.0",
3130
"phpstan/phpstan": "^0.12.18",
3231
"phpstan/phpstan-phpunit": "^0.12.6",
3332
"phpunit/phpunit": "^7.5.20|^8.5.2",
3433
"symfony/browser-kit": "^3.4|^4.0|^5.0",
34+
"symfony/console": "^3.4|^4.0|^5.0",
3535
"symfony/monolog-bridge": ">=3",
3636
"symfony/monolog-bundle": "^3.0",
3737
"symfony/phpunit-bridge": "^5.0",
3838
"symfony/security-bundle": "^3.4|^4.0|^5.0",
39-
"symfony/security-core": "^3.4|^4.0|^5.0"
39+
"symfony/security-core": "^3.4|^4.0|^5.0",
40+
"symfony/yaml": "^3.4|^4.0|^5.0"
4041
},
4142
"suggest": {
4243
"facile-it/paraunit": "A PHPUnit wrapper to execute tests in parallel"

src/WebTestCase.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ abstract class WebTestCase extends BaseWebTestCase
2626

2727
/**
2828
* Builds up the environment to run the given command.
29+
*
2930
* @param array<string, mixed> $params
3031
*/
3132
protected function runCommand(string $name, array $params = [], bool $reuseKernel = false): CommandTester

0 commit comments

Comments
 (0)