2015-07-20 17:09:08 +02:00
|
|
|
language: php
|
|
|
|
|
|
|
|
sudo: false
|
2014-06-18 03:20:24 +02:00
|
|
|
|
|
|
|
env:
|
2017-04-21 01:58:27 +02:00
|
|
|
global:
|
|
|
|
- COMPOSER_ROOT_VERSION=2.0.x-dev
|
|
|
|
- CORE_RELEASE=master
|
2014-06-18 03:20:24 +02:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
2015-10-18 03:13:51 +02:00
|
|
|
- php: 5.6
|
2017-04-21 01:58:27 +02:00
|
|
|
env:
|
|
|
|
- PHPUNIT_TEST=1
|
|
|
|
- DB=PGSQL
|
|
|
|
- php: 5.6
|
|
|
|
env:
|
|
|
|
- PHPUNIT_TEST=1
|
|
|
|
- DB=MYSQL
|
2016-06-27 04:51:15 +02:00
|
|
|
- php: 5.6
|
2017-04-21 01:58:27 +02:00
|
|
|
env:
|
|
|
|
- PHPCS_TEST=1
|
|
|
|
- DB=MYSQL
|
2014-06-18 03:20:24 +02:00
|
|
|
|
|
|
|
before_script:
|
2017-04-21 01:58:27 +02:00
|
|
|
- if [[ $PHPCS_TEST ]]; then pyrus install pear/PHP_CodeSniffer; fi
|
2014-06-18 03:20:24 +02:00
|
|
|
- phpenv rehash
|
|
|
|
- git clone git://github.com/silverstripe-labs/silverstripe-travis-support.git ~/travis-support
|
|
|
|
- php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss
|
|
|
|
- cd ~/builds/ss
|
|
|
|
|
2016-06-27 04:51:15 +02:00
|
|
|
script:
|
2017-04-21 01:58:27 +02:00
|
|
|
- if [[ $PHPUNIT_TEST ]]; then vendor/bin/phpunit testsession/tests/; fi
|
|
|
|
- if [[ $PHPCS_TEST ]]; then (cd testsession && composer run-script lint); fi
|