Home

Awesome

composer-travis-lint

Build Status Version PHP Version composer.lock available

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.