language: php
php:
  - "5.4"
  - "5.3"

services: mysql

before_script:
  - cp app/config/parameters.yml-dist app/config/parameters.yml
  - composer install
  - pear install pear/PHP_CodeSniffer
  - phpenv rehash
  - mysql -e 'create database youhighfiveme;'
  - mysql -e 'create user "youhighfiveme"@"localhost" identified by "secret";'

script: phpunit -c app/ --coverage-text

after_script:
  - phpcs --report=full --report=gitblame --standard=PSR2 src/ || true # true is here to make return true, so we don't fail on CS violations, yet.

notifications:
  irc:
    - "irc.freenode.org#youhighfive.me"
language: php
php:
  - "5.4"
  - "5.3"

services: mysql

before_script:
  - cp app/config/parameters.yml-dist app/config/parameters.yml
  - mysql -e 'create database youhighfiveme;'
  - mysql -e 'create user "youhighfiveme"@"localhost" identified by "secret";'
  - composer install
  - pear install pear/PHP_CodeSniffer
  - phpenv rehash

script: phpunit -c app/ --coverage-text

after_script:
  - phpcs --report=full --report=gitblame --standard=PSR2 src/ || true # true is here to make return true, so we don't fail on CS violations, yet.

notifications:
  irc:
    - "irc.freenode.org#youhighfive.me"
Install database and user before composer
Install database and user before composer
