Skip to content

Commit

Permalink
Some infrastructure changes
Browse files Browse the repository at this point in the history
  • Loading branch information
goetas committed May 14, 2016
1 parent 6267f82 commit 46ebc42
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 50 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
/.settings
/.buildpath
/cover
.idea
composer.lock
36 changes: 0 additions & 36 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,4 @@
tools:
php_mess_detector: true
php_analyzer:
config:
parameter_reference_check: { enabled: false }
checkstyle: { enabled: false, no_trailing_whitespace: true, naming: { enabled: true, local_variable: '^[a-z][a-zA-Z0-9]*$', abstract_class_name: ^Abstract|Factory$, utility_class_name: 'Utils?$', constant_name: '^[A-Z][A-Z0-9]*(?:_[A-Z0-9]+)*$', property_name: '^[a-z][a-zA-Z0-9]*$', method_name: '^(?:[a-z]|__)[a-zA-Z0-9]*$', parameter_name: '^[a-z][a-zA-Z0-9]*$', interface_name: '^[A-Z][a-zA-Z0-9]*Interface$', type_name: '^[A-Z][a-zA-Z0-9]*$', exception_name: '^[A-Z][a-zA-Z0-9]*Exception$', isser_method_name: '^(?:is|has|should|may|supports)' } }
unreachable_code: { enabled: false }
check_access_control: { enabled: false }
typo_checks: { enabled: false }
check_variables: { enabled: false }
check_calls: { enabled: true, too_many_arguments: true, missing_argument: true, argument_type_checks: lenient }
suspicious_code: { enabled: false, overriding_parameter: false, overriding_closure_use: false, parameter_closure_use_conflict: false, parameter_multiple_times: false, non_existent_class_in_instanceof_check: false, non_existent_class_in_catch_clause: false, assignment_of_null_return: false, non_commented_switch_fallthrough: false, non_commented_empty_catch_block: false, overriding_private_members: false, use_statement_alias_conflict: false, precedence_in_condition_assignment: false }
dead_assignments: { enabled: false }
verify_php_doc_comments: { enabled: false, parameters: false, return: false, suggest_more_specific_types: false, ask_for_return_if_not_inferrable: false, ask_for_param_type_annotation: false }
loops_must_use_braces: { enabled: false }
check_usage_context: { enabled: true, foreach: { value_as_reference: true, traversable: true } }
simplify_boolean_return: { enabled: false }
phpunit_checks: { enabled: false }
reflection_checks: { enabled: false }
precedence_checks: { enabled: true, assignment_in_condition: true, comparison_of_bit_result: true }
basic_semantic_checks: { enabled: false }
unused_code: { enabled: false }
deprecation_checks: { enabled: false }
useless_function_calls: { enabled: false }
metrics_lack_of_cohesion_methods: { enabled: false }
metrics_coupling: { enabled: true, stable_code: { namespace_prefixes: { }, classes: { } } }
doctrine_parameter_binding: { enabled: false }
doctrine_entity_manager_injection: { enabled: false }
symfony_request_injection: { enabled: false }
doc_comment_fixes: { enabled: false }
reflection_fixes: { enabled: false }
use_statement_fixes: { enabled: true, remove_unused: true, preserve_multiple: false, preserve_blanklines: false, order_alphabetically: false }
php_code_sniffer: true
sensiolabs_security_checker: true
php_cpd: true
php_loc: true
php_pdepend: true
external_code_coverage: true
filter:
paths:
Expand Down
17 changes: 14 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
language: php
sudo: false

php:
- 5.4
- 5.5
- 5.6
- hhvm

cache:
directories:
- vendor
- $HOME/.composer/cache

before_script:
- composer install --prefer-dist --dev
- echo "xdebug.max_nesting_level=1000" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- if [[ $TRAVIS_PHP_VERSION = '5.6' ]]; then PHPUNIT_FLAGS="--coverage-clover=coverage.clover"; else PHPUNIT_FLAGS=""; fi
- if [[ $TRAVIS_PHP_VERSION != '5.6' ]]; then phpenv config-rm xdebug.ini; fi
- travis_retry composer self-update
- travis_retry composer update $COMPOSER_FLAGS

script: vendor/phpunit/phpunit/phpunit --coverage-clover=coverage.clover
script: vendor/bin/phpunit $PHPUNIT_FLAGS

after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
- if [[ $TRAVIS_PHP_VERSION = '5.6' ]] ; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[![Build Status](https://travis-ci.org/goetas/wsdl-reader.svg?branch=master)](https://travis-ci.org/goetas/wsdl-reader)
[![Code Coverage](https://scrutinizer-ci.com/g/goetas/wsdl-reader/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/goetas/wsdl-reader/?branch=master)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/goetas/wsdl-reader/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/goetas/wsdl-reader/?branch=master)
[![Build Status](https://travis-ci.org/goetas-webservices/wsdl-reader.svg?branch=master)](https://travis-ci.org/goetas-webservices/wsdl-reader)
[![Code Coverage](https://scrutinizer-ci.com/g/goetas-webservices/wsdl-reader/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/goetas-webservices/wsdl-reader/?branch=master)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/goetas-webservices/wsdl-reader/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/goetas-webservices/wsdl-reader/?branch=master)


PHP XSD Reader
==============

Read any [WSDL 1.1](http://en.wikipedia.org/wiki/Web_Services_Description_Language) (XSD) programmatically with PHP.
Read any [WSDL 1.1](http://en.wikipedia.org/wiki/Web_Services_Description_Language) (XSD) programatically with PHP.


Installation
Expand Down
6 changes: 2 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,14 @@
],
"require": {
"php": "~5.4",
"goetas-webservices/xsd-reader": "~0.1",
"goetas-webservices/xsd-reader": "^0.1",
"symfony/event-dispatcher" : "~2.0"
},
"require-dev" : {
"phpunit/phpunit" : "~4.0",
"phpunit/phpunit" : "^4.8|^5.0",
"sami/sami" : "~2.0",
"jmikola/wildcard-event-dispatcher": "~1.0"
},
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"psr-4": { "GoetasWebservices\\XML\\WSDLReader\\": "src/" }
},
Expand Down
6 changes: 3 additions & 3 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
</testsuites>

<filter>
<blacklist>
<directory>vendor</directory>
</blacklist>
<whitelist>
<directory>src</directory>
</whitelist>
</filter>

</phpunit>

0 comments on commit 46ebc42

Please sign in to comment.