Download the PHP package stolt/composer-multitest without Composer
On this page you can find all versions of the php package stolt/composer-multitest. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download stolt/composer-multitest
More information about stolt/composer-multitest
Files in stolt/composer-multitest
Package composer-multitest
Short Description Composer script to run a Composer test or spec script against all versions managed by PHPBrew or phpenv.
License MIT
Homepage https://github.com/raphaelstolt/composer-phpbrew-multitest
Informations about the package composer-multitest
composer-multitest
composer-multitest
is a Composer script that runs a test
or spec
Composer script against multiple PHP versions managed by PHPBrew or phpenv. Kind of a local Travis CI.
Assumptions
As composer-multitest
utilizes phpenv and PHPBrew it's assumed that at least one of them is installed and manages several PHP versions. It will first look for phpenv managed versions and when this fails it will subsequently look for PHPBrew managed ones.
The versions to test against are read from the local Travis CI configuration so it's assumed that one is present. Versions present in the Travis CI configuration not having a phpenv or PHPBrew managed version will fail the script when not disabled via the --skip-missing-versions
option.
The Composer script composer-multitest
will run MUST be named test
or spec
and it can be defined in a Composer script namespace like library:test|spec
.
Installation
The Composer script should be installed as a development dependency through Composer.
Usage
Once installed add the Composer script to the existing composer.json
and use it afterwards via composer multitest
.
If you want to disable the prerequisite that the tests or specs have to be run against all PHP versions defined in the Travis CI configuration use the --skip-missing-versions
option like shown next.
Example output
The follow console output shows an example multitest run against two PHP versions.
Running tests
License
This Composer script is licensed under the MIT license. Please see LICENSE for more details.
Changelog
Please see CHANGELOG for more details.
Contributing
Please see CONTRIBUTING for more details.