Skip to content

Commit 373f877

Browse files
authored
Merge pull request #11 from friends-of-phpspec/external-services-configuration
External services configuration
2 parents 94ffef8 + 53b3bf7 commit 373f877

File tree

4 files changed

+67
-62
lines changed

4 files changed

+67
-62
lines changed

.scrutinizer.yml

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,18 @@
11
build:
22
nodes:
33
analysis:
4-
project_setup:
5-
override:
6-
- 'true'
74
tests:
85
override:
96
- php-scrutinizer-run
10-
-
11-
command: phpcs-run
12-
use_website_config: true
13-
environment:
14-
node:
15-
version: 6.0.0
7+
168
filter:
17-
excluded_paths:
18-
- 'spec/*'
19-
checks:
20-
php: true
21-
coding_style:
22-
php: { }
9+
paths:
10+
- 'src/*'
11+
2312
tools:
24-
php_cs_fixer:
25-
config: { level: Symfony } # or psr1 if you would just like to get fixes for PSR1
13+
external_code_coverage:
14+
timeout: 600
15+
php_loc: true
16+
php_pdepend: true
17+
php_sim: true
18+
php_changetracking: true

.travis.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
language: php
2+
23
matrix:
34
include:
45
- php: 7.1
@@ -7,7 +8,16 @@ matrix:
78
- php: 7.2
89
- php: 7.2
910
env: deps=low
11+
- php: 7.3
12+
- php: 7.3
13+
env: deps=low
14+
- php: nightly
15+
env: deps=low
16+
- php: nightly
17+
allow_failures:
18+
- php: nightly
1019

20+
depth: 1
1121

1222
cache:
1323
directories:
@@ -19,10 +29,12 @@ before_script:
1929
script:
2030
- composer validate
2131
- composer update
22-
- bin/phpcs
23-
- bin/phpspec run --no-code-generation
32+
# - bin/phpcs
33+
- vendor/bin/phpspec run --no-code-generation
2434

2535
install:
2636
- travis_retry composer install
2737

28-
38+
after_success:
39+
- phpenv config-rm xdebug.ini
40+
- composer scrutinizer

composer.json

Lines changed: 42 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
{
22
"name": "friends-of-phpspec/phpspec-code-coverage",
3-
"description": "Generate Code Coverage reports for PhpSpec tests",
43
"type": "library",
4+
"description": "Generate Code Coverage reports for PhpSpec tests",
55
"keywords": [
6-
"phpspec", "code", "coverage", "generate", "generation", "build",
7-
"report", "test", "tests", "code-coverage", "reports", "clover", "spec"
6+
"phpspec",
7+
"coverage",
8+
"report",
9+
"test",
10+
"tests",
11+
"code-coverage",
12+
"spec"
813
],
914
"homepage": "https://github.com/friends-of-phpspec/phpspec-code-coverage",
1015
"license": "MIT",
@@ -16,37 +21,52 @@
1621
},
1722
{
1823
"name": "Henrik Bjornskov"
24+
},
25+
{
26+
"name": "Stéphane Hulard",
27+
"email": "s.hulard@chstudio.fr",
28+
"homepage": "https://chstudio.fr"
29+
},
30+
{
31+
"name": "Pol Dellaiera",
32+
"email": "pol.dellaiera@protonmail.com",
33+
"homepage": "https://not-a-number.io/"
34+
},
35+
{
36+
"name": "Jay Linski",
37+
"homepage": "https://twitter.com/jay_linski"
1938
}
2039
],
21-
"support": {
22-
"issues": "https://github.com/friends-of-phpspec/phpspec-code-coverage/issues",
23-
"source": "https://github.com/friends-of-phpspec/phpspec-code-coverage",
24-
"docs": "https://github.com/friends-of-phpspec/phpspec-code-coverage#phpspec-code-coverage"
25-
},
2640
"require": {
2741
"php": "^7.1",
28-
"phpspec/phpspec": "^4.2||^5.0",
29-
"phpunit/php-code-coverage": "^5.0||^6.0||^7.0"
42+
"phpspec/phpspec": "^4.2 || ^5.0",
43+
"phpunit/php-code-coverage": "^5.0 || ^6.0 || ^7.0"
3044
},
3145
"require-dev": {
32-
"escapestudios/symfony2-coding-standard": "^3.1",
33-
"squizlabs/php_codesniffer": "^3.2"
46+
"squizlabs/php_codesniffer": "^3.2",
47+
"scrutinizer/ocular": "^1"
3448
},
3549
"suggest": {
36-
"ext-xdebug": "Install Xdebug to generate phpspec code coverage.",
37-
"ext-pcov": "Install PCov extension to generate code coverage."
38-
},
39-
"minimum-stability": "stable",
40-
"autoload" : {
41-
"psr-4" : { "LeanPHP\\PhpSpec\\CodeCoverage\\": "src/" }
50+
"ext-pcov": "Install PCov extension to generate code coverage.",
51+
"ext-xdebug": "Install Xdebug to generate phpspec code coverage."
4252
},
4353
"extra": {
4454
"branch-alias": {
45-
"dev-master": "4.x-dev",
46-
"dev-v3": "3.x-dev"
55+
"dev-master": "4.x-dev"
4756
}
4857
},
49-
"config": {
50-
"bin-dir": "bin"
58+
"autoload": {
59+
"psr-4": {
60+
"LeanPHP\\PhpSpec\\CodeCoverage\\": "src/"
61+
}
62+
},
63+
"minimum-stability": "stable",
64+
"scripts": {
65+
"scrutinizer": "./vendor/bin/ocular code-coverage:upload --format=php-clover build/coverage.xml"
66+
},
67+
"support": {
68+
"issues": "https://github.com/friends-of-phpspec/phpspec-code-coverage/issues",
69+
"source": "https://github.com/friends-of-phpspec/phpspec-code-coverage",
70+
"docs": "https://github.com/friends-of-phpspec/phpspec-code-coverage#phpspec-code-coverage"
5171
}
5272
}

phpcs.xml

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

0 commit comments

Comments
 (0)