language: php
sudo: false
php:
  - "7.0"
services:
  - redis-server
install:
  - composer install
  - composer dump-autoload -o
before_script:
  - mysql -e 'create database fixtures_tests;'
  - mysql -u root fixtures_tests < ./tests/Support/Scripts/create_fixtures_db.sql
  - echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
script:
 - mkdir -p build/logs
 - phpunit --coverage-clover build/logs/clover.xml
after_script:
 - php vendor/bin/coveralls -v

language: php
sudo: false
php:
  - "7.0"
services:
  - redis-server
install:
  - composer install
  - composer dump-autoload -o
before_script:
  - mysql -e 'create database fixtures_tests;'
  - mysql -u root fixtures_tests < ./tests/Support/Scripts/create_fixtures_db.sql
  - echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
  - chmod +x ./cc-test-reporter
  - ./cc-test-reporter before-build

script:
 - mkdir -p build/logs
 - phpunit --coverage-clover build/logs/clover.xml
after_script:
 - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

Add Code Climate unit tests coverage integration
Add Code Climate unit tests coverage integration
