run syntax check in ci

This commit is contained in:
Robin Appelman 2019-05-08 15:15:34 +02:00
parent ba139dd55a
commit fd5f01ad1b
4 changed files with 76 additions and 1 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@ node_modules/
*.cache
*.log
build
vendor

View File

@ -28,10 +28,13 @@ before_script:
- ./occ maintenance:install --database-name oc_autotest --database-user oc_autotest --admin-user admin --admin-pass admin --database $DB --database-pass=''
- ./occ app:enable $APP_NAME
- wget -O phpunit https://phar.phpunit.de/phpunit-5.7.phar && chmod +x phpunit
- cd apps/$APP_NAME/tests
- composer install
script:
# Run phpunit tests
# check syntax
- cd apps/$APP_NAME/tests
# Run phpunit tests
- ./../../../phpunit --configuration phpunit.xml
# Create coverage report

5
composer.json Normal file
View File

@ -0,0 +1,5 @@
{
"require-dev": {
"jakub-onderka/php-parallel-lint": "^1.0"
}
}

66
composer.lock generated Normal file
View File

@ -0,0 +1,66 @@
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "3a43ce757b05afa826bed71f3094c3b6",
"packages": [],
"packages-dev": [
{
"name": "jakub-onderka/php-parallel-lint",
"version": "v1.0.0",
"source": {
"type": "git",
"url": "https://github.com/JakubOnderka/PHP-Parallel-Lint.git",
"reference": "04fbd3f5fb1c83f08724aa58a23db90bd9086ee8"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/JakubOnderka/PHP-Parallel-Lint/zipball/04fbd3f5fb1c83f08724aa58a23db90bd9086ee8",
"reference": "04fbd3f5fb1c83f08724aa58a23db90bd9086ee8",
"shasum": ""
},
"require": {
"php": ">=5.3.3"
},
"require-dev": {
"jakub-onderka/php-console-highlighter": "~0.3",
"nette/tester": "~1.3",
"squizlabs/php_codesniffer": "~2.7"
},
"suggest": {
"jakub-onderka/php-console-highlighter": "Highlight syntax in code snippet"
},
"bin": [
"parallel-lint"
],
"type": "library",
"autoload": {
"classmap": [
"./"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-2-Clause"
],
"authors": [
{
"name": "Jakub Onderka",
"email": "ahoj@jakubonderka.cz"
}
],
"description": "This tool check syntax of PHP files about 20x faster than serial check.",
"homepage": "https://github.com/JakubOnderka/PHP-Parallel-Lint",
"time": "2018-02-24T15:31:20+00:00"
}
],
"aliases": [],
"minimum-stability": "stable",
"stability-flags": [],
"prefer-stable": false,
"prefer-lowest": false,
"platform": [],
"platform-dev": []
}