-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1c7bc0a
commit a1f941f
Showing
319 changed files
with
18,565 additions
and
7,191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/.travis.yml export-ignore | ||
/phpunit.xml.dist export-ignore | ||
/README.md export-ignore | ||
/tests export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
.php_cs.cache | ||
phpunit.xml | ||
composer.lock | ||
coverage | ||
vendor | ||
.idea/ | ||
build/ | ||
.idea | ||
./examples/_credentials.php | ||
build | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
$finder = PhpCsFixer\Finder::create() | ||
->in(__DIR__.'/src') | ||
->in(__DIR__.'/tests'); | ||
|
||
return PhpCsFixer\Config::create() | ||
->setFinder($finder) | ||
->setRules([ | ||
'@Symfony' => true, | ||
'declare_strict_types' => true, | ||
'ordered_imports' => true, | ||
'no_unused_imports' => true, | ||
'array_syntax' => ['syntax' => 'short'], | ||
'yoda_style' => false, | ||
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,12 @@ | ||
language: php | ||
|
||
addons: | ||
code_climate: | ||
repo_token: $CODECLIMATE_REPO_TOKEN | ||
|
||
cache: | ||
directories: | ||
- vendor | ||
- $HOME/.composer/cache | ||
|
||
env: | ||
global: | ||
- TASK_TESTS_COVERAGE=0 | ||
|
||
matrix: | ||
fast_finish: true | ||
include: | ||
- php: 7.0 | ||
|
||
- php: 7.1 | ||
|
||
- php: 7.2 | ||
|
||
install: | ||
# show versions and env information | ||
- php --version | ||
- composer --version | ||
- pg_config --version | ||
|
||
# disable xdebug for performance reasons when code coverage is not needed. | ||
- | | ||
if [[ $TASK_TESTS_COVERAGE != 1 ]]; then | ||
phpenv config-rm xdebug.ini || echo "xdebug is not installed" | ||
fi | ||
# Install dependencies | ||
- travis_retry composer self-update | ||
- travis_retry composer install --prefer-source --no-interaction --dev | ||
|
||
before_script: | ||
# Enable code coverage | ||
- | | ||
if [ $TASK_TESTS_COVERAGE == 1 ]; then | ||
PHPUNIT_FLAGS="--coverage-clover=$TRAVIS_BUILD_DIR/build/logs/clover.xml" | ||
fi | ||
- composer self-update | ||
- composer install --prefer-source --no-interaction --dev | ||
|
||
script: | ||
- vendor/bin/phpunit --verbose $PHPUNIT_FLAGS | ||
|
||
after_script: | ||
- | | ||
if [ $TASK_TESTS_COVERAGE == 1 ]; then | ||
vendor/bin/test-reporter --stdout > codeclimate.json | ||
curl -X POST -d @codeclimate.json -H 'Content-Type: application/json' -H 'User-Agent: Code Climate (PHP Test Reporter v0.1.1)' https://codeclimate.com/test_reports | ||
fi | ||
- composer test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.