-
Notifications
You must be signed in to change notification settings - Fork 0
Test integrate CI #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| build: | ||
| check: | ||
| image: framgia/laravel-workspace | ||
| commands: | ||
| - curl -o /usr/bin/framgia-ci https://raw.githubusercontent.com/framgia/ci-report-tool/master/dist/framgia-ci && chmod +x /usr/bin/framgia-ci | ||
| - chmod -R 777 storage/ | ||
| - chmod -R 777 bootstrap/cache/ | ||
| # - cp .env.testing.example .env | ||
| # - composer install | ||
| # - npm install | ||
| # - bower install --allow-root | ||
| # - gulp | ||
| - framgia-ci run | ||
| # compose: | ||
| # database: | ||
| # image: mysql | ||
| # environment: | ||
| # MYSQL_DATABASE: homestead_test | ||
| # MYSQL_USER: homestead_test | ||
| # MYSQL_PASSWORD: secret | ||
| # MYSQL_ROOT_PASSWORD: root | ||
| # deploy: | ||
| # rocketeer: | ||
| # image: fdplugins/rocketeer:php5 | ||
| # when: | ||
| # branch: develop | ||
| # commands: | ||
| # - rocketeer deploy --stage=staging --no-interaction | ||
| # rocketeer: | ||
| # image: fdplugins/rocketeer:php5 | ||
| # when: | ||
| # branch: master | ||
| # commands: | ||
| # - rocketeer deploy --stage=production --branch=master --no-interaction |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| project_type: php | ||
| test: | ||
| phpcpd: | ||
| ignore: true | ||
| command: phpcpd --log-pmd=.framgia-ci-reports/phpcpd.xml app | ||
| phpmd: | ||
| ignore: true | ||
| command: phpmd app xml codesize --reportfile .framgia-ci-reports/phpmd.xml | ||
| pdepend: | ||
| ignore: false | ||
| command: pdepend --summary-xml=.framgia-ci-reports/pdepend.xml | ||
| --jdepend-chart=.framgia-ci-reports/pdepend.svg | ||
| --overview-pyramid=.framgia-ci-reports/pyramid.svg | ||
| app | ||
| phpmetrics: | ||
| ignore: false | ||
| command: phpmetrics --report-html=.framgia-ci-reports/metrics.html | ||
| --report-xml=.framgia-ci-reports/metrics.xml | ||
| app | ||
| # eslint: | ||
| # ignore: true | ||
| # command: eslint --format=checkstyle | ||
| # --output-file=.framgia-ci-reports/eslint.xml | ||
| # resources/assets/js/ | ||
| phpcs: | ||
| ignore: true | ||
| command: phpcs --standard=Framgia --report-checkstyle=.framgia-ci-reports/phpcs.xml app | ||
| # phpunit: | ||
| # ignore: true | ||
| # command: | ||
| # - php -dzend_extension=xdebug.so vendor/bin/phpunit | ||
| # --coverage-clover=.framgia-ci-reports/coverage-clover.xml | ||
| # --coverage-html=.framgia-ci-reports/coverage |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,4 +10,8 @@ | |
| class Controller extends BaseController | ||
| { | ||
| use AuthorizesRequests, DispatchesJobs, ValidatesRequests; | ||
|
|
||
| public function test () { | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reporter: CHECKSTYLE Expected 0 spaces before opening parenthesis; 2 found
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reporter: CHECKSTYLE Opening brace should be on a new line
|
||
| $test = array(1, 2,3, 4, 65); | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reporter: CHECKSTYLE Spaces must be used to indent lines; tabs are not allowed
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reporter: CHECKSTYLE "array()" function used. Use short array syntax, "[]", instead.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reporter: CHECKSTYLE Expected 1 space between comma and "3"; 0 found
|
||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reporter: CHECKSTYLE
Rule: Squiz.Functions.FunctionDeclaration
Severity: ERROR
File: app/Http/Controllers/Controller.php L14
Expected "function abc(...)"; found "function abc (...)"