Add php-cs-fixer and phpunit to build

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2018-02-19 00:38:51 +01:00
parent 3157d6a590
commit 006e5c8c10
3 changed files with 1067 additions and 4 deletions

View File

@ -11,7 +11,9 @@ pages:
script:
- latesttag=$(git describe --tags)
- git checkout ${latesttag}
- php composer.phar install
- php composer.phar install -o --no-interaction --no-progress --prefer-dist
- php vendor/bin/php-cs-fixer fix --verbose --dry-run
- vendor/bin/phpunit --bootstrap app/tests/bootstrap.php --debug app/tests
- mkdir tpl_c
- zip -r latest.zip .
- mkdir .public
@ -22,7 +24,7 @@ pages:
- public
only:
- master
funky:
stage: funky
before_script:

View File

@ -64,7 +64,8 @@
},
"require-dev": {
"phpunit/phpunit": "^5.7"
"phpunit/phpunit": "^5.7",
"friendsofphp/php-cs-fixer": "~2.0"
},
"autoload": {

1062
composer.lock generated

File diff suppressed because it is too large Load Diff