sudo: false

language: php 

php: 
  - 5.4

env:
  matrix:
   - DB=MYSQL CORE_RELEASE=3.2

matrix:
  include:
    - php: 5.4
      env: DB=MYSQL CORE_RELEASE=3

before_script:
  - phpenv rehash
  - composer self-update
  - git clone git://github.com/silverstripe-labs/silverstripe-travis-support.git ~/travis-support
  - php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss
  - cd ~/builds/ss

script: 
  - vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover mailgunner/tests/

after_script:
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover --repository=g/kinglozzer/silverstripe-mailgunner coverage.clover

sudo: false

language: php 

php: 
  - 5.4

env:
  matrix:
   - DB=MYSQL CORE_RELEASE=3.2

matrix:
  include:
    - php: 5.4
      env: DB=MYSQL CORE_RELEASE=3

before_script:
  - phpenv rehash
  - composer self-update
  - git clone git://github.com/silverstripe-labs/silverstripe-travis-support.git ~/travis-support
  - php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss
  - cd ~/builds/ss

script: 
  - vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover mailgunner/tests/

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

Fix up clover coverage reports
Fix up clover coverage reports
