Merge pull request #22 from dhensby/pulls/travis-fix

Added standard Travis config
This commit is contained in:
Damian Mooyman 2015-12-17 09:59:57 +13:00
commit 7b245c6df9

View File

@ -1,24 +1,32 @@
# See https://github.com/silverstripe-labs/silverstripe-travis-support for setup details # See https://github.com/silverstripe-labs/silverstripe-travis-support for setup details
language: php
php:
- 5.3
sudo: false sudo: false
language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
env: env:
- DB=MYSQL CORE_RELEASE=master - DB=MYSQL CORE_RELEASE=3
- DB=PGSQL CORE_RELEASE=master
matrix: matrix:
include: include:
- php: 5.4 - php: 5.6
env: DB=MYSQL CORE_RELEASE=master env: DB=PGSQL CORE_RELEASE=3
allow_failures:
- php: 7.0
before_script: before_script:
- composer self-update || true
- git clone git://github.com/silverstripe-labs/silverstripe-travis-support.git ~/travis-support - git clone git://github.com/silverstripe-labs/silverstripe-travis-support.git ~/travis-support
- php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss - php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss
- cd ~/builds/ss - cd ~/builds/ss
- composer install
script: script:
- phpunit reports/tests/ - vendor/bin/phpunit reports/tests