From 7cc5f59e128d7899d0469f1bea31ce661e21c091 Mon Sep 17 00:00:00 2001 From: Tran Duy Khanh Date: Fri, 12 May 2017 10:24:13 +0700 Subject: [PATCH 1/2] Test integrate CI --- .drone.yml | 34 +++++++++++++++++++++++++++++ .framgia-ci.yml | 33 ++++++++++++++++++++++++++++ app/Http/Controllers/Controller.php | 4 ++++ 3 files changed, 71 insertions(+) create mode 100644 .framgia-ci.yml diff --git a/.drone.yml b/.drone.yml index e69de29..fc6c28a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 \ No newline at end of file diff --git a/.framgia-ci.yml b/.framgia-ci.yml new file mode 100644 index 0000000..592627e --- /dev/null +++ b/.framgia-ci.yml @@ -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 diff --git a/app/Http/Controllers/Controller.php b/app/Http/Controllers/Controller.php index 03e02a2..36f1291 100644 --- a/app/Http/Controllers/Controller.php +++ b/app/Http/Controllers/Controller.php @@ -10,4 +10,8 @@ class Controller extends BaseController { use AuthorizesRequests, DispatchesJobs, ValidatesRequests; + + public function test () { + $test = array(1, 2,3, 4, 65); + } } From 2ac646ddf36084238b95f2d491453c4bc1f9bc26 Mon Sep 17 00:00:00 2001 From: Tran Duy Khanh Date: Mon, 22 May 2017 08:50:06 +0700 Subject: [PATCH 2/2] try trigger scruntinizer --- .gitattributes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index 967315d..a70fc42 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2,4 +2,4 @@ *.css linguist-vendored *.scss linguist-vendored *.js linguist-vendored -CHANGELOG.md export-ignore +CHANGELOG.md export-ignore \ No newline at end of file