Skip to content

Commit

Permalink
Merge ea0271a into 8245b44
Browse files Browse the repository at this point in the history
  • Loading branch information
chadicus committed Mar 15, 2018
2 parents 8245b44 + ea0271a commit eca725b
Show file tree
Hide file tree
Showing 10 changed files with 48 additions and 1,988 deletions.
1 change: 0 additions & 1 deletion .coveralls.yml
@@ -1,4 +1,3 @@
service_name: travis-ci
src_dir: .
coverage_clover: clover.xml
json_path: coveralls-upload.json
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
/coverage/
/vendor/
clover.xml
composer.lock
17 changes: 7 additions & 10 deletions .scrutinizer.yml
@@ -1,27 +1,24 @@
filter:
excluded_paths:
- 'vendor/*'
- 'tests/*'
before_commands:
- 'composer install --prefer-source'
checks:
php:
custom_coding_standard:
git_repository: 'https://github.com/chadicus/coding-standard'
git_version: '3264851a30a7305995998660ee239d1a3d1c311f'
ruleset_path: 'Chadicus/ruleset.xml'
build:
tests:
override:
- php-scrutinizer-run
- phpcs-run --standard=./vendor/chadicus/coding-standard/Chadicus/ruleset.xml
tools:
php_analyzer: true
php_mess_detector: true
sensiolabs_security_checker: true
php_loc:
excluded_dirs:
- vendor
- tests
php_pdepend: true
php_sim: true
build_failure_conditions:
- 'elements.rating(<= B).new.exists'
- 'elements.rating(< B).new.exists'
- 'issues.label("coding-style").new.exists'
- 'issues.severity(>= MAJOR).new.exists'
- 'project.metric("scrutinizer.quality", < 8)'
- 'project.metric("scrutinizer.quality", < 9)'
14 changes: 7 additions & 7 deletions .travis.yml
@@ -1,17 +1,17 @@
language: php
php:
- 5.6
- 7.0
- 7.1
- 7.2
- nightly
- hhvm

env:
- PREFER_LOWEST="--prefer-lowest --prefer-stable"
- PREFER_LOWEST=""
matrix:
fast_finish: true
allow_failures:
- php: nightly

install: composer install
- php: nightly
before_script:
- composer update $PREFER_LOWEST
script: ./vendor/bin/phpunit --coverage-clover clover.xml
after_success: sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then ./vendor/bin/coveralls -v; fi'
after_success: ./vendor/bin/coveralls -v
13 changes: 8 additions & 5 deletions composer.json
Expand Up @@ -11,14 +11,17 @@
}
],
"license": "MIT",
"config": {
"sort-packages": true
},
"require": {
"php": "~5.6 || ~7.0",
"ext-dom" : "*"
"php": "^7.0",
"ext-dom": "*"
},
"require-dev": {
"phpunit/phpunit": "^5.0",
"chadicus/coding-standard": "^1.1.2",
"satooshi/php-coveralls": "^1.0"
"chadicus/coding-standard": "^1.3",
"php-coveralls/php-coveralls": "^1.0",
"phpunit/phpunit": "^5.0"
},
"autoload": {
"psr-4": { "Chadicus\\Util\\": "src/" }
Expand Down

0 comments on commit eca725b

Please sign in to comment.