Skip to content

Commit

Permalink
Update configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tekill committed May 7, 2017
1 parent c4c0f5c commit 58d3fbe
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
13 changes: 9 additions & 4 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@ checks:
fix_doc_comments: true

tools:
external_code_coverage:
timeout: 600
runs: 3
php_analyzer: true
php_code_coverage: false
php_code_sniffer:
config:
standard: PSR2
Expand All @@ -35,3 +31,12 @@ tools:
php_cpd:
enabled: true
excluded_dirs: [vendor, tests]

build:
tests:
override:
-
command: 'vendor/bin/phpunit --coverage-clover=some-file'
coverage:
file: 'some-file'
format: 'clover'
6 changes: 1 addition & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,4 @@ php:
before_script:
- composer install

script: vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover

after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
script: vendor/bin/phpunit
10 changes: 4 additions & 6 deletions tests/ProcessorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,13 @@ public function actualizeEnvParseFailedDataProvider()
$invalidDirectory = 'fixtures/actualize/invalid/';
$tests = [];

chdir(__DIR__);
foreach (scandir($invalidDirectory) as $folder) {
foreach (scandir(__DIR__ . '/' . $invalidDirectory) as $folder) {
if ($folder === '.' || $folder === '..') {
continue;
}
$tests[basename($folder)] = [
new Config($invalidDirectory . $folder . '/.env.dist'),
file_get_contents($invalidDirectory . $folder . '/error.txt')
file_get_contents(__DIR__ . '/' . $invalidDirectory . $folder . '/error.txt')
];
}

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

chdir(__DIR__);
foreach (scandir($invalidDirectory) as $folder) {
foreach (scandir(__DIR__ . '/' . $invalidDirectory) as $folder) {
if ($folder === '.' || $folder === '..') {
continue;
}
$tests[basename($folder)] = [
new Config($invalidDirectory . $folder . '/.env.dist', $invalidDirectory . $folder . '/.env'),
file_get_contents($invalidDirectory . $folder . '/error.txt')
file_get_contents(__DIR__ . '/' . $invalidDirectory . $folder . '/error.txt')
];
}

Expand Down

0 comments on commit 58d3fbe

Please sign in to comment.