-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Project converted to work with JSON Schema
- Loading branch information
Showing
100 changed files
with
3,877 additions
and
3,826 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,3 @@ | ||
service_name: travis-ci | ||
coverage_clover: tests/_output/coverage.xml | ||
json_path: tests/_output/coveralls.json |
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,31 +1,13 @@ | ||
language: php | ||
|
||
sudo: false | ||
|
||
php: | ||
- 7.1 | ||
- 7.0 | ||
|
||
|
||
- 7.2 | ||
before_script: | ||
- pecl channel-update pecl.php.net | ||
- pecl install yaml-2.0.0 < /dev/null | ||
- echo "extension = yaml.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini | ||
- composer install -n | ||
|
||
addons: | ||
apt: | ||
packages: | ||
- libyaml-dev | ||
addons: | ||
code_climate: | ||
repo_token: b0a53bb7d832d3d4fc6cc499e3709d2206238cb0ba4da93b4e97d1150f17d453 | ||
script: | ||
- phpunit --coverage-clover build/logs/clover.xml | ||
|
||
- vendor/bin/codecept run unit --coverage --coverage-xml | ||
after_script: | ||
- if [ $TRAVIS_PHP_VERSION >= '7.0' ]; then php vendor/bin/coveralls; fi | ||
|
||
- if [ $TRAVIS_PHP_VERSION = '7.2' ]; then php vendor/bin/php-coveralls; fi | ||
after_success: | ||
- travis_retry php vendor/bin/coveralls -v | ||
- travis_retry php vendor/bin/php-coveralls -v | ||
- vendor/bin/test-reporter |
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,10 @@ | ||
paths: | ||
tests: tests | ||
output: tests/_output | ||
data: tests/_data | ||
support: tests/_support | ||
envs: tests/_envs | ||
actor_suffix: Tester | ||
extensions: | ||
enabled: | ||
- Codeception\Extension\RunFailed |
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,42 +1,36 @@ | ||
{ | ||
"name": "selami/entity", | ||
"description": "A library to assert variable types, to normalize and to set default values for a model definition.", | ||
"description": "A library to assert variable types and values for a model defined using JSON Schema standard (draft-07 and draft-06).", | ||
"type": "library", | ||
"require": { | ||
"php": "^7.2", | ||
"ext-json": "*", | ||
"opis/json-schema": "^1.0", | ||
"ramsey/uuid": "^3.8" | ||
}, | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Mehmet Korkmaz", | ||
"email": "mehmet@mkorkmaz.com" | ||
} | ||
], | ||
"minimum-stability": "dev", | ||
"require": { | ||
"php": "~7.0||~7.1", | ||
"crisu83/shortid": "~1.0", | ||
"ezyang/htmlpurifier": "~4.8", | ||
"seld/jsonlint": "^1.5", | ||
"symfony/yaml": "^3.2" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^6.0", | ||
"phpunit/phpcov": "^4.0", | ||
"satooshi/php-coveralls": "^1.0", | ||
"codeclimate/php-test-reporter": "dev-master" | ||
}, | ||
"suggest":{ | ||
"ext-yaml": "Needed to support native yaml parser. Default parser is Symfony Yaml Parser" | ||
}, | ||
"minimum-stability": "stable", | ||
"autoload": { | ||
"psr-4": { | ||
"Selami\\Entity\\": "src/" | ||
}, | ||
"files":[ | ||
"src/functions.php" | ||
] | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Selami\\Test\\Abstracts\\": "tests/extend/" | ||
"Selami\\Entity\\" : "./src/" | ||
} | ||
}, | ||
"require-dev": { | ||
"squizlabs/php_codesniffer": "^3.3", | ||
"codeception/codeception": "^2.5", | ||
"php-coveralls/php-coveralls": "^2.1", | ||
"object-calisthenics/phpcs-calisthenics-rules": "^3.3" | ||
}, | ||
"scripts": { | ||
"unit-tests": "vendor/bin/codecept run unit --coverage", | ||
"phpcs": "vendor/bin/phpcs --standard=PSR2 src tests", | ||
"phpcbf": "vendor/bin/phpcbf --standard=PSR2 src tests", | ||
"phpcs-object-calisthenics": "vendor/bin/phpcs src -sp --standard=vendor/object-calisthenics/phpcs-calisthenics-rules/src/ObjectCalisthenics/ruleset.xml" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.