2015-04-07 13:15:22 +02:00
|
|
|
language: php
|
|
|
|
|
2015-07-20 17:07:22 +02:00
|
|
|
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
|
|
|
|
2016-08-10 03:35:13 +02:00
|
|
|
env:
|
|
|
|
matrix:
|
|
|
|
- PHPUNIT_TEST=1
|
|
|
|
- PHPCS_TEST=1
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- php: 5.5
|
|
|
|
env: PHPUNIT_TEST=1
|
|
|
|
|
2015-04-07 13:27:02 +02:00
|
|
|
before_script:
|
2016-08-10 03:35:13 +02:00
|
|
|
- composer install --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"
|