Skip to content

Commit

Permalink
Merge pull request #43 from sprain/szepeviktor-patch-1
Browse files Browse the repository at this point in the history
Add more testing
  • Loading branch information
sprain authored May 10, 2020
2 parents bc93e74 + 9a1d0d6 commit 1e727cd
Show file tree
Hide file tree
Showing 34 changed files with 2,176 additions and 964 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/vendor
/example/qr.png
/example/qr.svg
/.php_cs.cache
20 changes: 8 additions & 12 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
checks:
php: true
php: true

filter:
excluded_paths:
- tests/*
excluded_paths:
- tests/*

build:
nodes:
tests: true
analysis:
tests:
override:
-
command: phpcs-run
use_website_config: true
- php-scrutinizer-run
nodes:
analysis:
tests:
override:
- php-scrutinizer-run
20 changes: 18 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,24 @@ env:
- PREFER_LOWEST="--prefer-lowest"
- PREFER_LOWEST=""

before_script:
jobs:
include:
- stage: "Integrate"
name: "Coding standard"
php: 7.3
env:
- PREFER_LOWEST=""
script: vendor/bin/php-cs-fixer --no-interaction --dry-run --diff -v fix src/
- name: "Static analysis"
php: 7.3
env:
- PREFER_LOWEST=""
script: vendor/bin/phpstan analyse

install:
- composer validate --strict
- composer update --prefer-source $PREFER_LOWEST

script:
- vendor/bin/phpunit
- find src/ tests/ example/ -type f -name '*.php' -print0 | xargs -0 -L1 -P4 -- php -l
- vendor/bin/phpunit
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
},
"require-dev": {
"phpunit/phpunit": "^6.4|^7.0",
"symfony/css-selector": "^4.2"
"symfony/css-selector": "^4.2",
"phpstan/phpstan": "^0.12.23",
"friendsofphp/php-cs-fixer": "^2.16"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit 1e727cd

Please sign in to comment.