mirror of
https://github.com/silverstripe/silverstripe-testsession
synced 2024-10-22 14:06:00 +02:00
35 lines
791 B
YAML
35 lines
791 B
YAML
language: php
|
|
|
|
sudo: false
|
|
|
|
env:
|
|
global:
|
|
- COMPOSER_ROOT_VERSION=2.0.x-dev
|
|
- CORE_RELEASE=master
|
|
|
|
matrix:
|
|
include:
|
|
- php: 5.6
|
|
env:
|
|
- PHPUNIT_TEST=1
|
|
- DB=PGSQL
|
|
- php: 5.6
|
|
env:
|
|
- PHPUNIT_TEST=1
|
|
- DB=MYSQL
|
|
- php: 5.6
|
|
env:
|
|
- PHPCS_TEST=1
|
|
- DB=MYSQL
|
|
|
|
before_script:
|
|
- if [[ $PHPCS_TEST ]]; then pyrus install pear/PHP_CodeSniffer; fi
|
|
- 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
|
|
|
|
script:
|
|
- if [[ $PHPUNIT_TEST ]]; then vendor/bin/phpunit testsession/tests/; fi
|
|
- if [[ $PHPCS_TEST ]]; then (cd testsession && composer run-script lint); fi
|