mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
28 lines
537 B
YAML
28 lines
537 B
YAML
language: php
|
|
|
|
sudo: false
|
|
|
|
php:
|
|
- 5.6
|
|
|
|
env:
|
|
matrix:
|
|
- PHPUNIT_TEST=1
|
|
- PHPCS_TEST=1
|
|
|
|
matrix:
|
|
include:
|
|
- php: 5.6
|
|
env: PHPUNIT_TEST=1
|
|
|
|
before_script:
|
|
- composer install --dev --prefer-dist
|
|
- composer require silverstripe/config:1.0.x-dev silverstripe/framework:4.0.x-dev --prefer-dist
|
|
- pyrus install pear/PHP_CodeSniffer
|
|
- phpenv rehash
|
|
|
|
|
|
script:
|
|
- "if [ \"$PHPUNIT_TEST\" = \"1\" ]; then vendor/bin/phpunit tests; fi"
|
|
- "if [ \"$PHPCS_TEST\" = \"1\" ]; then phpcs --standard=PSR2 -n src/ tests/; fi"
|