Skip to content
This repository has been archived by the owner on Apr 28, 2021. It is now read-only.
/ Toolbox-CI Public archive
generated from JBZoo/Skeleton-PHP

Toolbox for continuous integration system (TeamCity, Travis, etc)

License

Notifications You must be signed in to change notification settings

JBZoo/Toolbox-CI

Repository files navigation

JBZoo / Toolbox-CI

Build Status Coverage Status Psalm Coverage Scrutinizer Code Quality CodeFactor PHP Strict Types
Stable Version Latest Unstable Version Dependents GitHub Issues Total Downloads GitHub License

Installing

composer require jbzoo/toolbox-ci

# OR use phar file.
# Replace <VERSION> to the latest version. See releases page or badge above
wget https://github.com/JBZoo/Toolbox-CI/releases/download/<VERSION>/toolbox-ci.phar

Usage

$ php ./vendor/bin/toolbox-ci convert --help
Description:
  Convert one report format to another

Usage:
  convert [options]

Options:
  -S, --input-format=INPUT-FORMAT    Source format. Available options: checkstyle, github-cli, junit, phpmd-json, phpmnd, psalm-json, tc-inspections, tc-tests
  -T, --output-format=OUTPUT-FORMAT  Target format. Available options: checkstyle, github-cli, junit, phpmd-json, phpmnd, psalm-json, tc-inspections, tc-tests
  -N, --suite-name=SUITE-NAME        Set name of root suite
  -I, --input-file[=INPUT-FILE]      Use CLI input (STDIN, pipeline) OR use the option to define filename of source report
  -O, --output-file[=OUTPUT-FILE]    Use CLI output (STDOUT, pipeline) OR use the option to define filename with result
  -R, --root-path[=ROOT-PATH]        If option is set all absolute file paths will be converted to relative
  -F, --tc-flow-id[=TC-FLOW-ID]      Custom flowId for TeamCity output
  -h, --help                         Display this help message
  -q, --quiet                        Do not output any message
  -V, --version                      Display this application version
      --ansi                         Force ANSI output
      --no-ansi                      Disable ANSI output
  -n, --no-interaction               Do not ask any interactive question
  -v|vv|vvv, --verbose               Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Available Directions

php ./vendor/bin/toolbox-ci convert:map
Source/Target CheckStyle.xml GitHub Actions - CLI JUnit.xml PHPmd.json PHPmnd.xml Psalm.json TeamCity - Inspections TeamCity - Tests
CheckStyle.xml - Yes Yes - - - Yes Yes
GitHub Actions - CLI - - - - - - - -
JUnit.xml - Yes Yes - - - Yes Yes
PHPmd.json - Yes Yes - - - Yes Yes
PHPmnd.xml - Yes Yes - - - Yes Yes
Psalm.json - Yes Yes - - - Yes Yes
TeamCity - Inspections - - - - - - - -
TeamCity - Tests - - - - - - - -

Unit tests and check code style

make build
make test-all

License

MIT