PHPCSStandards / composer-installer

Composer installer for PHP_CodeSniffer coding standards
https://packagist.org/packages/dealerdirect/phpcodesniffer-composer-installer
MIT License
559 stars 36 forks source link

Adds Travis-CI configuration file. #27

Closed Potherca closed 7 years ago

Potherca commented 7 years ago

Proposed Changes

I got annoyed at all of the pull-requests having a red :x: next to builds.

This merge request fixes that by adding a .travis.yml file that triggers a PHP build. It tries to find a balance between speed and quality.

I've also added a fix for a PHP CodeSniffer violation (one line exceeded 120 characters).

Related Issues

Part of issue #9

Caveats

The dealerdirect/qa-tools is installed on the Travis machine to run QA checks. Currently this means the build for unsupported PHP versions (5.3, 5.4, 5.4) will fail because qa-tools requires at least 5.6.

At a later stage, these builds could be made to pass. Such a solution is not within scope for this merge-request.