diff --git a/composer.json b/composer.json index e7222bb1..5ec06dff 100644 --- a/composer.json +++ b/composer.json @@ -56,7 +56,11 @@ "pda/pheanstalk": "~3.1", "maknz/slack": "~1.7", "hipchat/hipchat-php": "~1.4", - "mremi/flowdock": "~1.0" + "mremi/flowdock": "~1.0", + "enrise/phpci-rocketeer": "0.1.*", + "upassist/phpci-deployer": "1.0.*", + "mindteam/phpci-symfony2-plugin": "@dev", + "hipay/phpci-composer-security-checker": "@dev" }, "require-dev": { "phpmd/phpmd": "@stable", @@ -70,11 +74,7 @@ "jakub-onderka/php-parallel-lint": "0.9.*", "theseer/phpdox": "0.8.1.1", "atoum/atoum": "2.5.*", - "phplint/phplint": "@dev", - "enrise/phpci-rocketeer": "0.1.*", - "upassist/phpci-deployer": "1.0.*", - "mindteam/phpci-symfony2-plugin": "@dev", - "hipay/phpci-composer-security-checker": "@dev" + "phplint/phplint": "@dev" }, "suggest": { "block8/php-docblock-checker": "PHP Docblock Checker", diff --git a/public/assets/js/build-plugins/composer-security-check.js b/public/assets/js/build-plugins/composer-security-check.js new file mode 100644 index 00000000..51859de8 --- /dev/null +++ b/public/assets/js/build-plugins/composer-security-check.js @@ -0,0 +1,72 @@ +var composerSecurityCheck = ActiveBuild.UiPlugin.extend({ + id: 'build-composer-security-check-errors', + css: 'col-lg-6 col-md-6 col-sm-6 col-xs-6', + title: Lang.get('Composer Security'), + lastData: null, + displayOnUpdate: false, + box: true, + rendered: false, + + register: function() { + var self = this; + var query = ActiveBuild.registerQuery('composer-security-check-errors', -1, {key: 'composer-security-check-errors'}) + + $(window).on('composer-security-check-errors', function(data) { + self.onUpdate(data); + }); + + $(window).on('build-updated', function() { + if (!self.rendered) { + self.displayOnUpdate = true; + query(); + } + }); + }, + + render: function() { + + return $('
'+Lang.get('Resultats')+' | ' + + '
---|