# See https://github.com/silverstripe-labs/silverstripe-travis-support for setup details

language: php

sudo: false

php:
 - 5.5

env:
  matrix:
    - DB=MYSQL CORE_RELEASE=master

matrix:
  include:
    - php: 5.6
      env: DB=PGSQL CORE_RELEASE=master
    - php: 5.6
      env: DB=MYSQL CORE_RELEASE=master

before_script:
 - phpenv rehash
 - 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:
 - phpunit testsession/tests/unit/

# See https://github.com/silverstripe-labs/silverstripe-travis-support for setup details

language: php

sudo: false

php:
 - 5.5

env:
  matrix:
    - DB=MYSQL CORE_RELEASE=master

matrix:
  include:
    - php: 5.6
      env: DB=PGSQL CORE_RELEASE=master
    - php: 5.6
      env: DB=MYSQL CORE_RELEASE=master

before_script:
 - phpenv rehash
 - 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 testsession/tests/unit/

Use composer-aware phpunit to run tests.
FIX: Use composer-aware phpunit to run tests.

SilverStripe now requires the phpunit autoloader to work, which means
that a non-composer-installed copy of phpunit won’t work.