mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-03 01:39:28 +02:00

* Fix php-cs according to https://github.com/ampache/ampache/issues/1251 to fix travis build. Use composer to force the 1.* version to be used. * Add `encoding` fixer. * Use the same set of fixers in Git commit hook and test script. * Update hooks and scripts. * Fix a braces issue detected by php-cs. Closes issue #1251.
19 lines
329 B
YAML
19 lines
329 B
YAML
language: php
|
|
|
|
php:
|
|
- 5.4
|
|
- 5.5
|
|
- 5.6
|
|
- 7.0
|
|
|
|
before_install:
|
|
- export PATH="$PATH:$HOME/.composer/vendor/bin"
|
|
- composer global require friendsofphp/php-cs-fixer:1.*
|
|
|
|
before_script:
|
|
- chmod +x scripts/tests/syntax.sh
|
|
- chmod +x scripts/tests/codestyle.sh
|
|
|
|
script:
|
|
- scripts/tests/syntax.sh
|
|
- scripts/tests/codestyle.sh
|