stolt / composer-travis-lint
Composer script to lint a Travis CI configuration file.
Installs: 13 651
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 2
Forks: 3
Open Issues: 1
pkg:composer/stolt/composer-travis-lint
Requires
- php: >=5.6
- ext-curl: *
Requires (Dev)
- composer/composer: ^1.0
- friendsofphp/php-cs-fixer: 2.0.0-alpha
- mockery/mockery: ^0.9.5
- phpunit/phpunit: ^4.8 || ^5.0
This package is auto-updated.
Last update: 2025-10-18 19:46:52 UTC
README
composer-travis-lint is a Composer script that lints a project/micro-package its Travis CI configuration aka its .travis.yml file.
Installation
The Composer script should be installed as a development dependency through Composer.
composer require --dev stolt/composer-travis-lint
Usage
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.
Running tests without integration tests
composer ctl:test
Running all tests
composer ctl:test-all
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.