language: php
php:
  - "7.0"
sudo: false
before_script:
  - cp config/app_travis.php config/app.php
  - cp config/oauth_example.php config/oauth.php
  - mysql -e 'create database pmaerr;'
  - wget https://scrutinizer-ci.com/ocular.phar
  - composer install
script:
  - bin/cake migrations migrate
  - vendor/bin/phpunit --coverage-clover build/logs/clover.xml -c phpunit.xml.dist
after_script:
  - php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
after_success:
  - bash <(curl -s https://codecov.io/bash)

language: php
php:
  - "7.2"
sudo: false
before_script:
  - cp config/app_travis.php config/app.php
  - cp config/oauth_example.php config/oauth.php
  - mysql -e 'create database pmaerr;'
  - wget https://scrutinizer-ci.com/ocular.phar
  - composer install
script:
  - bin/cake migrations migrate
  - vendor/bin/phpunit --coverage-clover build/logs/clover.xml -c phpunit.xml.dist
after_script:
  - php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
after_success:
  - bash <(curl -s https://codecov.io/bash)

Test against PHP 7.2 as that is our production setup now
Test against PHP 7.2 as that is our production setup now

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