language: php
php:
  - "5.4"
  - "5.5"
  - "5.6"
  - "hhvm"
before_script:
  - composer install --dev --no-interaction
  - cp app/Config/core.example.php app/Config/core.php
  - cp app/Config/database.travis.php app/Config/database.php
  - cp app/Config/oauth.example.php app/Config/oauth.php
  - mysql -e 'create database pmaerr;'
  - wget https://scrutinizer-ci.com/ocular.phar
script:
  - app/Console/cake Migrations.migration run all -p Migrations
  - app/Console/cake Migrations.migration run all --precheck Migrations.PrecheckCondition
  - app/Console/cake test app AllTests --coverage-clover build/logs/clover.xml --configuration=phpunit.xml
after_script:
  - php vendor/bin/coveralls -v
  - php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml

language: php
php:
  - "5.3"
  - "5.4"
  - "5.5"
  - "5.6"
  - "hhvm"
before_script:
  - composer install --dev --no-interaction
  - cp app/Config/core.example.php app/Config/core.php
  - cp app/Config/database.travis.php app/Config/database.php
  - cp app/Config/oauth.example.php app/Config/oauth.php
  - mysql -e 'create database pmaerr;'
  - wget https://scrutinizer-ci.com/ocular.phar
script:
  - app/Console/cake Migrations.migration run all -p Migrations
  - app/Console/cake Migrations.migration run all --precheck Migrations.PrecheckCondition
  - app/Console/cake test app AllTests --coverage-clover build/logs/clover.xml --configuration=phpunit.xml
after_script:
  - php vendor/bin/coveralls -v
  - php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml

Test with more PHP versions
Test with more PHP versions

Signed-off-by: Michal Čihař <a2df1e659c9fd2578de0a26565357cb273292eeb@cihar.com>
