Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more testing #43

Merged
merged 10 commits into from
May 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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