2015-10-30 05:14:40 +01:00
|
|
|
language: php
|
|
|
|
|
2012-10-31 00:18:45 +01:00
|
|
|
php:
|
|
|
|
- 5.3
|
|
|
|
|
2015-07-20 17:00:19 +02:00
|
|
|
sudo: false
|
|
|
|
|
2012-10-31 00:18:45 +01:00
|
|
|
env:
|
2015-10-30 05:14:40 +01:00
|
|
|
- DB=MYSQL CORE_RELEASE=3.1
|
2012-10-31 00:18:45 +01:00
|
|
|
|
|
|
|
matrix:
|
2015-10-30 05:14:40 +01:00
|
|
|
include:
|
2012-10-31 00:18:45 +01:00
|
|
|
- php: 5.4
|
2015-10-30 05:14:40 +01:00
|
|
|
env: DB=PGSQL CORE_RELEASE=3.2
|
2012-10-31 00:18:45 +01:00
|
|
|
- php: 5.4
|
2015-10-30 05:14:40 +01:00
|
|
|
env: DB=SQLITE CORE_RELEASE=3.2
|
|
|
|
- php: 5.5
|
|
|
|
env: DB=MYSQL CORE_RELEASE=3
|
|
|
|
- php: 5.6
|
|
|
|
env: DB=MYSQL CORE_RELEASE=3.2
|
2012-10-31 00:18:45 +01:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
- pear -q install --onlyreqdeps pear/PHP_CodeSniffer
|
|
|
|
- phpenv rehash
|
2013-03-29 09:46:01 +01:00
|
|
|
- git clone git://github.com/silverstripe-labs/silverstripe-travis-support.git ~/travis-support
|
|
|
|
- php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss
|
2012-10-31 00:18:45 +01:00
|
|
|
- cd ~/builds/ss
|
|
|
|
|
|
|
|
script:
|
|
|
|
- phpunit restfulserver/tests/
|
|
|
|
- phpcs --encoding=utf-8 --tab-width=4 --standard=restfulserver/tests/phpcs -np restfulserver
|