language: php
php:
  - '5.6'
  - '7.0'
  - '7.1'

install:
 - composer install --prefer-dist
 - composer global require "squizlabs/php_codesniffer=*"

script:
 - vendor/bin/phpunit
 - phpcs src/
language: php
php:
  - '5.6'
  - '7.0'
  - '7.1'

install:
 - composer install --prefer-dist
 - pyrus install pear/PHP_CodeSniffer

before_script:
  - phpenv rehash

script:
 - vendor/bin/phpunit
 - phpcs src/
Use pyrus to install phpcs
Use pyrus to install phpcs
