language: php

php:
  - 5.6

services:
  - redis-server

before_script:
  - mysql -uroot -e 'create database rena;'
  - wget http://getcomposer.org/composer.phar
  - php composer.phar install --dev --no-interaction -o
  - ls -alh
  - cp tests/config.php config/config.php
  - cat config/config.php
  - cp tests/phinx.yml .
  - cat phinx.yml
  - phpenv config-add tests/phpsettings.ini
  - php vendor/bin/phinx migrate
  - php vendor/bin/phinx status

script:
  - phpunit --coverage-clover=coverage.clover --bootstrap tests/init.php tests/*
  - php tests/coverage-checker.php coverage.clover 75

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

sudo: true
language: php

php:
  - 5.6

services:
  - redis-server

before_script:
  - sudo service mysql stop
  - sudo apt-get install python-software-properties
  - sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
  - sudo add-apt-repository 'deb http://ftp.osuosl.org/pub/mariadb/repo/10.0/ubuntu precise main'
  - sudo apt-get update -y
  - sudo apt-get install mariadb-server -y
  - mysql -uroot -e 'INSTALL SONAME "ha_tokudb"';
  - mysql -uroot -e 'create database rena;'
  - wget http://getcomposer.org/composer.phar
  - php composer.phar install --dev --no-interaction -o
  - ls -alh
  - cp tests/config.php config/config.php
  - cat config/config.php
  - cp tests/phinx.yml .
  - cat phinx.yml
  - phpenv config-add tests/phpsettings.ini
  - php vendor/bin/phinx migrate
  - php vendor/bin/phinx status

script:
  - phpunit --coverage-clover=coverage.clover --bootstrap tests/init.php tests/*
  - php tests/coverage-checker.php coverage.clover 75

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

Add mariadb instead of mysql, also setup tokudb..
Add mariadb instead of mysql, also setup tokudb..
