language: php

sudo: false

php: 
 - 5.3
 - 5.4

env:
 - DB=MYSQL CORE_RELEASE=3.5

matrix:
  include:
    - php: 5.5
      env: DB=PGSQL CORE_RELEASE=3.1
    - php: 5.6
      env: DB=MYSQL CORE_RELEASE=3.2
    - php: 7.1
      env: DB=MYSQL CORE_RELEASE=3.6

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

script: 
 - vendor/bin/phpunit selectupload/tests

language: php

sudo: false

php: 
 - 5.4

env:
 - DB=MYSQL CORE_RELEASE=3.5

matrix:
  include:
    - php: 5.5
      env: DB=PGSQL CORE_RELEASE=3.1
    - php: 5.6
      env: DB=MYSQL CORE_RELEASE=3.2
    - php: 7.1
      env: DB=MYSQL CORE_RELEASE=3.6

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

script: 
 - vendor/bin/phpunit selectupload/tests

Remove PHP 5.3 from Travis build matrix
Remove PHP 5.3 from Travis build matrix