Skip to content

Commit

Permalink
CI tools and other configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
defro committed Nov 8, 2018
1 parent 1bc16e7 commit da3c22e
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 7 deletions.
14 changes: 12 additions & 2 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,15 @@ checks:
fix_identation_4spaces: true
fix_doc_comments: true

tools:
external_code_coverage: true
build:
nodes:
coverage:
tests:
override:
- command: vendor/bin/phpunit
coverage:
file: tmp/coverage.xml
format: clover

#tools:
# external_code_coverage: true
5 changes: 5 additions & 0 deletions .styleci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
preset: recommended

finder:
name:
- "*.php"
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
language: php

php:
- 7.0
- 7.1
- 7.2
- 7.3
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
}
],
"require": {
"php": ">=7.0",
"php": ">=7.1",
"ext-json": "*",
"guzzlehttp/guzzle": "~6.0"

},
"require-dev": {
"phpunit/phpunit": "^6.4",
"phpunit/phpunit": "^7.4",
"vlucas/phpdotenv": "^2.4"
},
"autoload": {
Expand Down
3 changes: 3 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,7 @@
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
<logging>
<log type="coverage-clover" target="tmp/coverage.xml"/>
</logging>
</phpunit>
4 changes: 2 additions & 2 deletions src/GoogleStreetViewException.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
class GoogleStreetViewException extends \Exception
{

public function __construct(string $message = '', int $code = 0, Throwable $previous = null)
public function __construct(string $message, int $code = null, Throwable $previous = null)
{
parent::__construct($message, $code, $previous);
parent::__construct($message, (int) $code, $previous);
}

}
Empty file added tmp/.gitignore
Empty file.

0 comments on commit da3c22e

Please sign in to comment.