Added standard Travis config

This commit is contained in:
helpfulrobot 2015-12-18 23:06:52 +13:00
parent 22682b9c4a
commit 486aeff951

View File

@ -1,39 +1,36 @@
language: php # See https://github.com/silverstripe-labs/silverstripe-travis-support for setup details
sudo: false sudo: false
addons: language: php
apt:
packages: php:
- tidy - 5.3
- 5.4
- 5.5
- 5.6
- 7.0
env: env:
global: - DB=MYSQL CORE_RELEASE=3.2
- DB=MYSQL CORE_RELEASE=3.1
matrix: matrix:
allow_failures:
- php: hhvm-nightly
include: include:
- php: 5.6 - php: 5.6
env: DB=MYSQL env: DB=MYSQL CORE_RELEASE=3
- php: 5.5 - php: 5.6
env: DB=MYSQL env: DB=MYSQL CORE_RELEASE=3.1
- php: 5.4 - php: 5.6
env: DB=MYSQL env: DB=PGSQL CORE_RELEASE=3.2
- php: 5.3 allow_failures:
env: DB=MYSQL - php: 7.0
- php: hhvm
env: DB=MYSQL
before_install:
before_script: before_script:
- phpenv rehash
- composer self-update || true - 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:
- vendor/bin/phpunit blog/tests/ - vendor/bin/phpunit silverstripe-blog/tests