composer-travis-lint
is a Composer script that lints
a project/micro-package its Travis CI configuration aka its .travis.yml
file.
The Composer script should be installed as a development dependency through Composer.
composer require --dev stolt/composer-travis-lint
Once installed add the Composer script to the existing composer.json
and use it afterwards via composer travis-lint
.
{
"scripts": {
"travis-lint": "Stolt\\Composer\\Travis::lint"
},
}
On a first lint run the Composer script will create a cache file called .ctl.cache
to avoid making unnecessary lint requests against the Travis CI API. This file should prolly not be .gitignored
but defo be kept out of releases and therefore end up in the .gitattributes
file.
New lint
requests will only be made when the Travis CI configuration file changes.
composer ctl:test
composer ctl:test-all
This Composer script is licensed under the MIT license. Please see LICENSE for more details.
Please see CHANGELOG for more details.
Please see CONTRIBUTING for more details.