Skip to content
This repository was archived by the owner on Jul 28, 2024. It is now read-only.

Commit c9551b6

Browse files
authored
Merge pull request #8 from wavevision/feature/latest-dependencies
Feature/latest dependencies
2 parents 85184f4 + 395b756 commit c9551b6

38 files changed

+1533
-1158
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ before_script:
1515

1616
jobs:
1717
include:
18-
- script: composer phing ci
18+
- script: make ci
1919

2020
cache:
2121
directories:

Makefile

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
bin=vendor/bin
2+
chrome:=$(shell command -v google-chrome 2>/dev/null)
3+
codeSnifferRuleset=codesniffer-ruleset.xml
4+
coverage=$(temp)/coverage
5+
coverageClover=$(coverage)/coverage.xml
6+
php=php
7+
src=src
8+
temp=temp
9+
tests=tests
10+
dirs:=$(src) $(tests)
11+
12+
all:
13+
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$'
14+
15+
# Setup
16+
17+
composer:
18+
composer install
19+
20+
reset:
21+
rm -rf $(temp)/cache
22+
composer dumpautoload
23+
24+
di: reset
25+
bin/extract-services
26+
27+
fix: reset check-syntax phpcbf phpcs phpstan test
28+
29+
# QA
30+
31+
check-syntax:
32+
$(bin)/parallel-lint -e $(php) $(dirs)
33+
34+
phpcs:
35+
$(bin)/phpcs -sp --standard=$(codeSnifferRuleset) --extensions=php $(dirs)
36+
37+
phpcbf:
38+
$(bin)/phpcbf -spn --standard=$(codeSnifferRuleset) --extensions=php $(dirs) ; true
39+
40+
phpstan:
41+
$(bin)/phpstan analyze $(dirs) --level max
42+
43+
# Tests
44+
45+
test:
46+
$(bin)/phpunit
47+
48+
test-coverage: reset
49+
$(bin)/phpunit --coverage-html=$(coverage)
50+
51+
test-coverage-clover: reset
52+
$(bin)/phpunit --coverage-clover=$(coverageClover)
53+
54+
test-coverage-report: test-coverage-clover
55+
$(bin)/php-coveralls --coverage_clover=$(coverageClover) --verbose
56+
57+
test-coverage-open: test-coverage
58+
ifndef chrome
59+
open -a 'Google Chrome' $(coverage)/index.html
60+
else
61+
google-chrome $(coverage)/index.html
62+
endif
63+
64+
ci: check-syntax phpcs phpstan test-coverage-report

build.xml

Lines changed: 0 additions & 154 deletions
This file was deleted.

codesniffer-ruleset.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0"?>
22
<ruleset name="WavevisionUtils">
3-
<rule ref="vendor/wavevision/coding-standard/php/WavevisionCodingStandard/ruleset.xml"/>
3+
<rule ref="vendor/wavevision/coding-standard/php/ruleset.xml"/>
44
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName">
55
<properties>
66
<property name="rootNamespaces" type="array">

composer.json

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,27 +34,20 @@
3434
"sort-packages": true
3535
},
3636
"require": {
37+
"php": ">=7.4",
3738
"ext-fileinfo": "*",
3839
"ext-iconv": "*",
3940
"ext-json": "*",
4041
"ext-zip": "*",
41-
"flow/jsonpath": "^0.4.0",
4242
"nette/finder": "^2.5",
4343
"nette/utils": "^3.1",
44-
"php": ">=7.4"
44+
"softcreatr/jsonpath": "^0.6.4"
4545
},
4646
"require-dev": {
47-
"php-parallel-lint/php-parallel-lint": "^1.0",
4847
"mikey179/vfsstream": "^1.6",
49-
"phing/phing": "^3.0-alpha3",
5048
"php-coveralls/php-coveralls": "^2.1",
51-
"php-mock/php-mock-phpunit": "^2.4",
52-
"phpstan/phpstan": "^0.12.3",
53-
"phpunit/phpunit": "^8.3",
54-
"wavevision/coding-standard": "^3.0"
55-
},
56-
"scripts": {
57-
"phing": "phing"
49+
"phpunit/phpunit": "^9.4",
50+
"wavevision/coding-standard": "^5.2"
5851
},
5952
"extra": {
6053
"phpstan": {}

0 commit comments

Comments
 (0)