language: php

services:
  - mysql

php:
  - 5.6
  - 7.0
  - 7.3

install:
  - composer self-update
  - composer global require "fxp/composer-asset-plugin"
  - travis_retry composer install --no-interaction --prefer-source

before_script:
  - travis_retry mysql -e "CREATE DATABASE scheduler_test;"
  - php tests/_app/yii migrate/up --interactive=0 --migrationPath=src/migrations/
  - vendor/bin/codecept build

script:
  - vendor/bin/codecept run --coverage --coverage-xml

after_script:
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover tests/_output/coverage.xml
language: php

services:
  - mysql

php:
  - 5.6
  - 7.0

install:
  - composer self-update
  - composer global require "fxp/composer-asset-plugin"
  - travis_retry composer install --no-interaction --prefer-source

before_script:
  - travis_retry mysql -e "CREATE DATABASE scheduler_test;"
  - php tests/_app/yii migrate/up --interactive=0 --migrationPath=src/migrations/
  - vendor/bin/codecept build

script:
  - vendor/bin/codecept run --coverage --coverage-xml

after_script:
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover tests/_output/coverage.xml
Remove php 7.3 env - upgrading yii is causing package conflicts, can deal with this later
Remove php 7.3 env - upgrading yii is causing package conflicts, can deal with this later
