language: php

php:
  - 5.3
  - 5.4
  - 5.5

before_script:
  - composer self-update
  - composer install
  - composer require --dev satooshi/php-coveralls:dev-master
  - pear install --alldeps PHP_CodeSniffer
  - phpenv rehash

script:
  - phpcs --standard=psr2 src/
  - phpunit --coverage-text --coverage-clover build/logs/clover.xml

after_success:
  - php vendor/bin/coveralls -v

language: php

php:
  - 5.3
  - 5.4
  - 5.5

before_script:
  - composer self-update
  - composer install
  - pear install --alldeps PHP_CodeSniffer
  - phpenv rehash

script:
  - phpcs --standard=psr2 src/
  - phpunit --coverage-text --coverage-clover build/logs/clover.xml

after_success:
  - "composer require --dev satooshi/php-coveralls:dev-master && php vendor/bin/coveralls -v"

Move coveralls installation into after_success
Move coveralls installation into after_success
