silverstripe-behat-extension/.travis.yml

33 lines
684 B
YAML
Raw Normal View History

2015-04-07 13:15:22 +02:00
language: php
sudo: false
2015-04-07 13:15:22 +02:00
php:
2015-12-03 00:22:45 +01:00
- 5.6
2015-04-07 13:15:22 +02:00
env:
matrix:
- PHPUNIT_TEST=1
- PHPCS_TEST=1
matrix:
include:
2017-03-20 22:55:05 +01:00
- php: 5.6
env: PHPUNIT_TEST=1
2017-03-24 03:06:20 +01:00
- php: 7.0
env: PHPUNIT_TEST=1
- php: 7.1
env: PHPUNIT_TEST=1
before_script:
2017-03-24 03:01:56 +01:00
- composer validate
- composer install --dev --prefer-dist
2017-03-20 22:55:05 +01:00
- composer require silverstripe/config:1.0.x-dev silverstripe/framework:4.0.x-dev --prefer-dist
2017-03-24 03:06:20 +01:00
- "if [ \"$PHPCS_TEST\" = \"1\" ]; then pyrus install pear/PHP_CodeSniffer; fi"
- 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"