language: php

php:
  - "5.5"
  - "5.6"

before_script:
  - composer self-update
  - composer install --dev

# Fail if...
# * phpunit tests fail/error
# * phpcs tests indicate that PSR-2 compliance worsened
# * phpmd tests indicate a mess
script:
  - vendor/bin/phpunit
  - vendor/bin/phpcs -s --report-width=120 --standard=PSR2 ./{src,tests}
  - vendor/bin/phpmd src text cleancode,codesize,controversial,design,naming,unusedcode

after_script:
  - php vendor/bin/coveralls

language: php

php:
  - "5.5"
  - "5.6"

before_script:
  - composer self-update
  - composer install --dev

# Fail if...
# * phpunit tests fail/error
# * phpcs tests indicate that PSR-2 compliance worsened
# * phpmd tests indicate a mess
script:
  - mkdir -p build/logs
  - vendor/bin/phpunit
  - vendor/bin/phpcs -s --report-width=120 --standard=PSR2 ./{src,tests}
  - vendor/bin/phpmd src text cleancode,codesize,controversial,design,naming,unusedcode

after_script:
  - php vendor/bin/coveralls

Create build path for coveralls
Create build path for coveralls