Validation tool to ensure that the contents of a .travis.yml make sense.
Fund package maintenance!
Installs: 38 910
Open Issues: 0
- php: ^5.6 | ^7.1
- composer/semver: ^3.0
- symfony/console: ^3.0 | ^4.0 | ^5.0
- symfony/yaml: ^3.0 | ^4.0 | ^5.0
- phpcq/all-tasks: ^1.3
Validate .travis.yml against composer.json.
This check performs several tests.
The first test ensures that a PHP version is set in the composer.json and this version is also covered by the .travis.yml.
The second test is to ensure that all allowed versions in .travis.yml are available at travis-ci.
Optionally it tests, that no unmaintained PHP version is set in the composer.json and .travis.yml and errors when an unmaintained PHP version is mentioned. Currently this means any version prior to PHP 5.4.
Add to your
composer.json in the
Call the binary:
Optionally pass the root of the project to check:
To additionally check for unmaintained PHP versions:
To additionally check for unmaintained PHP versions within another project:
./vendor/bin/check-travis-configuration.php --unmaintained-version-error /path/to/some/project