Skip to content

Commit 58d3fbe

Browse files
committed
Update configs
1 parent c4c0f5c commit 58d3fbe

File tree

3 files changed

+14
-15
lines changed

3 files changed

+14
-15
lines changed

.scrutinizer.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,7 @@ checks:
1919
fix_doc_comments: true
2020

2121
tools:
22-
external_code_coverage:
23-
timeout: 600
24-
runs: 3
2522
php_analyzer: true
26-
php_code_coverage: false
2723
php_code_sniffer:
2824
config:
2925
standard: PSR2
@@ -35,3 +31,12 @@ tools:
3531
php_cpd:
3632
enabled: true
3733
excluded_dirs: [vendor, tests]
34+
35+
build:
36+
tests:
37+
override:
38+
-
39+
command: 'vendor/bin/phpunit --coverage-clover=some-file'
40+
coverage:
41+
file: 'some-file'
42+
format: 'clover'

.travis.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,4 @@ php:
1313
before_script:
1414
- composer install
1515

16-
script: vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
17-
18-
after_script:
19-
- wget https://scrutinizer-ci.com/ocular.phar
20-
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
16+
script: vendor/bin/phpunit

tests/ProcessorTest.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -162,14 +162,13 @@ public function actualizeEnvParseFailedDataProvider()
162162
$invalidDirectory = 'fixtures/actualize/invalid/';
163163
$tests = [];
164164

165-
chdir(__DIR__);
166-
foreach (scandir($invalidDirectory) as $folder) {
165+
foreach (scandir(__DIR__ . '/' . $invalidDirectory) as $folder) {
167166
if ($folder === '.' || $folder === '..') {
168167
continue;
169168
}
170169
$tests[basename($folder)] = [
171170
new Config($invalidDirectory . $folder . '/.env.dist'),
172-
file_get_contents($invalidDirectory . $folder . '/error.txt')
171+
file_get_contents(__DIR__ . '/' . $invalidDirectory . $folder . '/error.txt')
173172
];
174173
}
175174

@@ -244,14 +243,13 @@ public function showDifferenceParseFailedDataProvider()
244243
$invalidDirectory = 'fixtures/difference/invalid/';
245244
$tests = [];
246245

247-
chdir(__DIR__);
248-
foreach (scandir($invalidDirectory) as $folder) {
246+
foreach (scandir(__DIR__ . '/' . $invalidDirectory) as $folder) {
249247
if ($folder === '.' || $folder === '..') {
250248
continue;
251249
}
252250
$tests[basename($folder)] = [
253251
new Config($invalidDirectory . $folder . '/.env.dist', $invalidDirectory . $folder . '/.env'),
254-
file_get_contents($invalidDirectory . $folder . '/error.txt')
252+
file_get_contents(__DIR__ . '/' . $invalidDirectory . $folder . '/error.txt')
255253
];
256254
}
257255

0 commit comments

Comments
 (0)