mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-26 11:01:04 +00:00
Put more validations on travis
Run php-cs-fixer to avoid CS on commits Add a check on translation message using the built-in yaml validator. It'll avoid typo in translation yaml files.
This commit is contained in:
parent
f92b5de7ac
commit
4cb3ef5125
3 changed files with 9 additions and 1 deletions
|
@ -11,6 +11,7 @@ addons:
|
||||||
|
|
||||||
# cache vendor dirs
|
# cache vendor dirs
|
||||||
cache:
|
cache:
|
||||||
|
apt: true
|
||||||
directories:
|
directories:
|
||||||
- vendor
|
- vendor
|
||||||
- $HOME/.composer/cache
|
- $HOME/.composer/cache
|
||||||
|
@ -28,6 +29,9 @@ env:
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
|
include:
|
||||||
|
- php: 7.0
|
||||||
|
env: CS_FIXER=run VALIDATE_TRANSLATION_FILE=run DB=sqlite
|
||||||
exclude:
|
exclude:
|
||||||
- php: hhvm
|
- php: hhvm
|
||||||
env: DB=pgsql # driver for PostgreSQL currently unsupported by HHVM, requires 3rd party dependency
|
env: DB=pgsql # driver for PostgreSQL currently unsupported by HHVM, requires 3rd party dependency
|
||||||
|
@ -53,3 +57,5 @@ script:
|
||||||
- travis_wait composer install --no-interaction --no-progress --prefer-dist -o
|
- travis_wait composer install --no-interaction --no-progress --prefer-dist -o
|
||||||
- ant prepare-$DB
|
- ant prepare-$DB
|
||||||
- bin/phpunit -v
|
- bin/phpunit -v
|
||||||
|
- if [ "$CS_FIXER" = "run" ]; then php bin/php-cs-fixer fix src/ --verbose --dry-run ; fi;
|
||||||
|
- if [ "$VALIDATE_TRANSLATION_FILE" = "run" ]; then php bin/console lint:yaml src/Wallabag/CoreBundle/Resources/translations ; fi;
|
||||||
|
|
1
bin/php-cs-fixer
Symbolic link
1
bin/php-cs-fixer
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../vendor/fabpot/php-cs-fixer/php-cs-fixer
|
|
@ -86,7 +86,8 @@
|
||||||
"doctrine/doctrine-fixtures-bundle": "~2.2",
|
"doctrine/doctrine-fixtures-bundle": "~2.2",
|
||||||
"sensio/generator-bundle": "^3.0",
|
"sensio/generator-bundle": "^3.0",
|
||||||
"phpunit/phpunit": "~4.4",
|
"phpunit/phpunit": "~4.4",
|
||||||
"symfony/phpunit-bridge": "^2.7"
|
"symfony/phpunit-bridge": "^2.7",
|
||||||
|
"fabpot/php-cs-fixer": "~1.9"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build-parameters": [
|
"build-parameters": [
|
||||||
|
|
Loading…
Reference in a new issue