File tree Expand file tree Collapse file tree 2 files changed +30
-27
lines changed Expand file tree Collapse file tree 2 files changed +30
-27
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -40,6 +40,36 @@ To lint a directory and all its subdirectories:
4040* ` -s ` skip the xsd validation
4141
4242
43+ Development
44+ -----------
45+
46+ ### Run tests
47+
48+ ``` shell
49+ # check code style
50+ php tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --dry-run -v
51+
52+ # run tests
53+ php vendor/bin/phpunit
54+ php vendor/bin/behat
55+ ```
56+
57+ Using docker:
58+
59+ ``` shell
60+ # Install dependencies
61+ docker run -it --rm -v " $PWD " :/usr/src/xml-lint -w /usr/src/xml-lint -v ${COMPOSER_HOME:- $HOME / .composer} :/tmp --user $( id -u) :$( id -g) composer install --ignore-platform-reqs --no-scripts
62+ docker run -it --rm -v " $PWD " :/usr/src/xml-lint -w /usr/src/xml-lint/tools/php-cs-fixer -v ${COMPOSER_HOME:- $HOME / .composer} :/tmp --user $( id -u) :$( id -g) composer install --ignore-platform-reqs --no-scripts
63+
64+ # Run code style check
65+ docker run -it --rm -v " $PWD " :/usr/src/xml-lint -w /usr/src/xml-lint php:7.4-cli php tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --dry-run -v
66+
67+ # Run tests
68+ docker run -it --rm -v " $PWD " :/usr/src/xml-lint -w /usr/src/xml-lint --user $( id -u) :$( id -g) php:7.4-cli php vendor/bin/phpunit
69+ docker run -it --rm -v " $PWD " :/usr/src/xml-lint -w /usr/src/xml-lint --user $( id -u) :$( id -g) php:7.4-cli php vendor/bin/behat
70+ ```
71+
72+
4373Changelog
4474---------
4575
You can’t perform that action at this time.
0 commit comments