Skip to content

Commit 2a48097

Browse files
cmbuckleyalek13
authored andcommitted
Add scrutinizer config with multiple php versions
* The default tests block runs unit tests against the latest version, ie 8.0. * The php* nodes repeat unit tests against earlier PHP versions. * The coverage and analysis nodes look after the other scrutinizer responsibilities.
1 parent e2307f0 commit 2a48097

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/.gitattributes export-ignore
33
/.github export-ignore
44
/.gitignore export-ignore
5+
/.scrutinizer.yml export-ignore
56
/.styleci.yml export-ignore
67
/.travis.yml export-ignore
78
/phpunit.xml.dist export-ignore

.scrutinizer.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
filter:
2+
excluded_paths:
3+
- 'tests/*'
4+
checks:
5+
php: true
6+
build:
7+
nodes:
8+
php71:
9+
environment:
10+
php: 7.1
11+
php72:
12+
environment:
13+
php: 7.2
14+
php73:
15+
environment:
16+
php: 7.3
17+
php74:
18+
environment:
19+
php: 7.4
20+
coverage:
21+
tests:
22+
override:
23+
- command: 'XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-clover=phpunit-coverage.xml'
24+
coverage:
25+
file: 'phpunit-coverage.xml'
26+
format: 'php-clover'
27+
analysis:
28+
tests:
29+
override:
30+
- command: phpcs-run
31+
use_website_config: true
32+
- php-scrutinizer-run
33+
tests:
34+
override:
35+
- command: 'vendor/bin/phpunit'

0 commit comments

Comments
 (0)