# 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/