2012-11-23 14:51:34 +04:00
|
|
|
language: php
|
|
|
|
|
|
|
|
php:
|
|
|
|
- 5.2
|
|
|
|
- 5.3
|
2015-05-11 13:58:26 +03:00
|
|
|
- 5.3.3
|
2012-11-23 14:51:34 +04:00
|
|
|
- 5.4
|
2013-09-06 12:53:46 +04:00
|
|
|
- 5.5
|
2014-07-09 14:18:09 +04:00
|
|
|
- 5.6
|
|
|
|
- hhvm
|
|
|
|
|
|
|
|
matrix:
|
2015-05-11 13:30:15 +03:00
|
|
|
allow_failures:
|
|
|
|
- php: hhvm
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
## Packages
|
|
|
|
- sudo apt-get -qq update > /dev/null
|
|
|
|
## Composer
|
2015-05-11 13:58:26 +03:00
|
|
|
##@todo Remove when support of 5.2 will be dropped
|
|
|
|
- phpenv global 5.3
|
2015-05-11 13:30:15 +03:00
|
|
|
- composer self-update
|
|
|
|
- composer install --prefer-source --dev
|
2015-05-11 13:58:26 +03:00
|
|
|
- phpenv global "$TRAVIS_PHP_VERSION"
|
2012-11-23 14:51:34 +04:00
|
|
|
|
|
|
|
script:
|
2015-05-11 13:30:15 +03:00
|
|
|
## PHP_CodeSniffer
|
2015-05-13 09:02:23 +03:00
|
|
|
- ./vendor/bin/phpcs --report-width=200 --report-summary --report-full Classes/ unitTests/ --standard=PSR2 -n
|
2015-05-11 13:30:15 +03:00
|
|
|
## PHPUnit
|
|
|
|
- phpunit -c ./unitTests/
|
2012-11-23 14:51:34 +04:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email: false
|