silverstripe-reports/.travis.yml

31 lines
708 B
YAML
Raw Normal View History

2013-03-29 10:19:52 +01:00
# See https://github.com/silverstripe-labs/silverstripe-travis-support for setup details
sudo: false
2015-12-15 23:06:57 +01:00
language: php
2017-06-21 06:30:14 +02:00
env:
global:
- CORE_RELEASE=master
2013-03-29 10:19:52 +01:00
matrix:
include:
2015-12-15 23:06:57 +01:00
- php: 5.6
2017-06-21 06:30:14 +02:00
env: DB=MYSQL PHPCS_TEST=1
2015-12-15 23:06:57 +01:00
- php: 7.0
2017-06-21 06:30:14 +02:00
env: DB=PGSQL
- php: 7.1.2
2017-06-21 06:30:14 +02:00
env: DB=MYSQL
2013-03-29 10:19:52 +01:00
before_script:
2017-06-21 06:30:14 +02:00
- composer validate
2015-12-15 23:06:57 +01:00
- composer self-update || true
- 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
- composer install
2013-03-29 10:19:52 +01:00
2015-12-15 23:06:57 +01:00
script:
- vendor/bin/phpunit reports/tests
2017-06-21 06:30:14 +02:00
- if [[ $PHPCS_TEST ]]; then (cd reports && composer run-script lint); fi