Added standard Travis config

This commit is contained in:
helpfulrobot 2015-12-18 23:08:27 +13:00
parent 386348eb18
commit 43b6bae011

View File

@ -1,25 +1,28 @@
# 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.5
sudo: false sudo: false
language: php
php:
- 5.5
- 5.6
- 7.0
env: env:
- DB=MYSQL CORE_RELEASE=master - DB=MYSQL CORE_RELEASE=4.0
- DB=PGSQL CORE_RELEASE=master
matrix: matrix:
include: include:
- php: 5.6 - php: 5.6
env: DB=MYSQL CORE_RELEASE=master env: DB=PGSQL CORE_RELEASE=4.0
before_script: before_script:
- phpenv rehash - 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 translatable/tests/ - vendor/bin/phpunit silverstripe-translatable/tests