Commit graph

448 commits

Author SHA1 Message Date
meadsteve 356a2293a1 move logging related classes to appropriate namespace. 2013-12-13 16:10:54 +00:00
meadsteve 1bc2117c69 extracted build logging logic from the Builder class. 2013-12-13 15:57:56 +00:00
meadsteve 725e2aeadd Merge branch 'master' of https://github.com/meadsteve/PHPCI 2013-12-13 15:01:02 +00:00
meadsteve c67b29eacd adding missing required packages to the PluginController. 2013-12-13 15:00:05 +00:00
meadsteve 3a3cc98f86 rename CommandExecutor::executeCommand() so that it's not confused with the Builder::executeCommand() 2013-12-13 14:41:02 +00:00
steve.brazier 8d8714746c move findBinary from Builder to CommandExecutor. 2013-12-12 16:17:11 +00:00
steve.brazier d26568b962 fix issue #218 by blanking last output before executing new command. 2013-12-12 14:16:14 +00:00
steve.brazier 5801c6083e move command execution code out of builder class 2013-12-12 14:15:44 +00:00
indigodp cfe45f54d0 Update LocalBuild.php
Add fetching needed branch for local build
2013-12-11 09:33:59 +02:00
Steve B e49128f4d6 Merge pull request #232 from Block8/feature/shell_plugin_updates
Updating shell plugin with suggestions from #188
2013-12-10 02:53:31 -08:00
Dan Cryer 2cc554d9aa Merge pull request #233 from meadsteve/build-status-fix
Refactor how the plugin stages are called
2013-12-09 08:52:41 -08:00
Steve B 4e4607434c Merge pull request #230 from Block8/plugin-builder
Allow 3rd party plugins
2013-12-09 08:45:36 -08:00
Dan Cryer 123815aec9 Fix for #210 2013-12-09 16:27:39 +00:00
Dan Cryer 853510a1d3 Updating shell plugin with suggestions from #118 2013-12-09 16:12:54 +00:00
Steve B 6918addab4 Merge pull request #224 from freez10/master
UI Improvement: Modal confirmation dialog
2013-12-07 08:43:21 -08:00
Pavel Pavlov 148d30f74e Don't redirect or reload a page when confirmation dialog wasn't confirmed 2013-12-07 19:36:50 +04:00
meadsteve 169a92dfeb refactor the plugin stage calling code. 2013-12-07 14:45:13 +00:00
Steve B 03aeb7e3b1 remove unreachable if 2013-12-07 14:33:59 +00:00
Steve B ce88f50958 fix the plugin executor so that the status is correctly reported. 2013-12-07 13:53:05 +00:00
steve.brazier 974aeeffdc Merge branch 'unit-testing' into plugin-builder 2013-12-06 15:18:37 +00:00
steve.brazier 6aed18158b extract the success/failure logging of the builder to an interface. 2013-12-06 11:31:39 +00:00
meadsteve 912776801d move plugin execution code in to helper class. 2013-12-06 11:26:56 +00:00
steve.brazier 9207c39105 remove non existent variable. 2013-12-06 09:59:32 +00:00
steve.brazier a942525f84 switch to correct namespace separator in plugin construction. 2013-12-06 09:59:07 +00:00
Steve B 4a9103d6eb Merge pull request #227 from meadsteve/unit-testing
Unit testing - LoggerConfig
2013-11-29 02:17:02 -08:00
meadsteve c8dc8a67b7 Fix casing in LoggerConfig. 2013-11-28 21:18:11 +00:00
meadsteve 4f1d81e6fd update loggerConfig constructor to take array by default to make unit testing simpler. 2013-11-28 21:04:27 +00:00
Steve B 99adec03d5 allow non phpci native plugins. 2013-11-28 14:23:11 +00:00
steve.brazier 74df61cd6c Merge branches 'master' and 'plugin-builder' of https://github.com/meadsteve/PHPCI into plugin-builder 2013-11-28 14:10:43 +00:00
Steve B 9891a4be62 force plugin factory to only build plugins matching interface. 2013-11-28 14:05:26 +00:00
Pavel Pavlov 6c0aed7f28 UI Improvement: Modal confirmation dialog for deletion actions 2013-11-27 21:04:24 +04:00
Pavel Pavlov f7e396d04c Fixed merging bug 2013-11-27 18:14:40 +04:00
Pavel Pavlov 27e3b8b469 UI Improvement: Modal confirmation dialog 2013-11-27 18:09:14 +04:00
Mark Clements 12cca9c93c Merge pull request #223 from deep9/issue_221_gitlab
Proposed enhancement - fix for #221 GitlabBuild
2013-11-27 03:38:39 -08:00
Ondrej Huta 02dff2b081 Proposed enhancement - fix for #221 GitlabBuild 2013-11-27 12:08:03 +01:00
Ondrej Huta 77cfd1e5b2 Fix the SettingsController 5.4 call (refactor) 2013-11-27 11:54:17 +01:00
Ondrej Huta 35bc3dad31 Fix the SettingsController 5.4 call 2013-11-27 11:42:34 +01:00
Steve B 5b2f66565c Merge pull request #220 from meadsteve/master
remove callable typehint as this is not in php 5.3
2013-11-27 00:58:31 -08:00
steve.brazier db3fcb45d6 remove callable typehint as this is not in php 5.3 2013-11-27 08:49:03 +00:00
meadsteve 6d5bceea16 fix copy-paste mistake in phpunit plugin runDir() 2013-11-25 21:49:14 +00:00
Steve B 477fd58641 Merge pull request #213 from meadsteve/plugin-builder
Plugin construction change - plugin factory
2013-11-25 05:43:43 -08:00
Dan Cryer 235ac26932 Merge pull request #202 from rlindauer/master
Fix two bugs in PhpMessdetector Plugin
2013-11-25 03:46:12 -08:00
Dan Cryer a21c63705a Merge pull request #205 from stianlik/master
Bugfix for bare "Local Path" repositories
2013-11-25 03:45:42 -08:00
Dan Cryer c3d4286354 Merge pull request #208 from elkangaroo/phpcs-count-fix
Fixed counting (errors, warnings) in PHP Code Sniffer plugin
2013-11-25 03:44:51 -08:00
Dan Cryer 8d28273c0c Merge pull request #209 from elkangaroo/phplint-upstream-update
Update PHP Parallel Lint plugin to reflect upstream changes
2013-11-25 03:44:15 -08:00
steve.brazier 767d05cd80 Update constants to uppercase to match psr2. 2013-11-20 11:47:29 +00:00
Jimmy Cleuren 8f58902339 catch empty commit id from github 2013-11-19 22:47:12 +01:00
Jimmy Cleuren 4bc7a6c767 Remove commented line 2013-11-18 22:54:49 +01:00
Jimmy Cleuren 4d3372af88 Command to poll github for new commits 2013-11-18 22:49:18 +01:00
Jimmy Cleuren 8c127d692c catching permission error 2013-11-18 22:47:44 +01:00
meadsteve 6467a83d1a adds additional comments to plugin factory. 2013-11-17 22:31:51 +00:00
meadsteve 2bc7558b93 wiring in the plugin factory. doh! 2013-11-17 21:38:51 +00:00
meadsteve 42e462b4c9 remove leading slash. 2013-11-17 21:29:49 +00:00
meadsteve 9d1d2443a9 Move the mailer constructor logic out of the plugin and in to a factory class for reuse. 2013-11-17 21:26:38 +00:00
meadsteve 51f73458c8 allow swiftmailer object to be passed in to Email Plugin. 2013-11-17 17:50:06 +00:00
meadsteve a56df8ed87 Merge HEAD, branch 'master' of https://github.com/Block8/PHPCI into plugin-builder 2013-11-17 17:25:35 +00:00
meadsteve ebb3b9a3e6 switches builder to make use of plugin factory. 2013-11-17 17:24:47 +00:00
meadsteve e1d8239e8a Create factory for plugins that resources can be registered with. 2013-11-17 17:23:35 +00:00
meadsteve f88df400f0 Remove __constructor from plugin interface to increase flexibility. 2013-11-17 17:22:31 +00:00
Alexander Wenzel 801cc8ee5e store errors from parallel-lint as build_meta (key "phplint-errors");
add them to the "Quality Trend" graph on the build view
2013-11-13 19:55:45 +01:00
Alexander Wenzel a0d5f4b4d8 fix Plugin\PhpParallelLint to reflect latest upstream changes:
> executable is now "parallel-lint" instead of "run"
> supports --exclude flag (ignore directories)
2013-11-13 19:18:24 +01:00
Alexander Wenzel 2fb162900d fixed counting of errors and warnings in Plugin/PhpCodeSniffer;
use --report=emacs in Plugin/PhpCodeSniffer to not spam the logs with the full blown report but rather display a small human readable summary report
2013-11-13 18:50:07 +01:00
Alexander Wenzel 9c330687a0 fixed LoggedBuildContextTidier: now correctly replaces "build" object with "buildID" in log entries 2013-11-12 23:19:55 +01:00
Stian Liknes 7d306b2295 Load configuration and create build directory for bare repositories 2013-11-12 22:18:09 +01:00
Steve B f987688269 Merge pull request #197 from meadsteve/logging
Logging configuration
2013-11-12 05:12:13 -08:00
Roy Lindauer fb08cdbbe7 Fix bug where ruleset file could not be set in PHPMessdetector plugin 2013-11-10 18:22:54 -08:00
Roy Lindauer d5763b8d78 Fix bug where options could not be overridden in PHPMessdetector plugin 2013-11-10 18:22:05 -08:00
meadsteve a5957d687a Added logging to the daemon and update commands. 2013-11-02 15:52:55 +00:00
meadsteve 37c50bdb4c Added a logger config key that is loaded for all commands. To allow a general purpose log. 2013-11-02 15:52:21 +00:00
meadsteve 6563c60ab3 Previous commit omitted these changes. doh! 2013-11-02 15:32:51 +00:00
meadsteve 0fc91f053a Added to the console so that external logging definitions are pulled in from a loggerconfig.php file if the file exists. 2013-11-02 15:28:24 +00:00
born_free 6b015d3106 fixed XSS in user name and project name properties 2013-11-02 16:39:55 -07:00
Steve B e1d68bece7 Merge pull request #191 from meadsteve/logging
RFC: First draft of using monolog for logging
2013-11-01 05:14:08 -07:00
Dan Cryer 14f00ee512 Merge pull request #192 from c2is/atoum
Added chdir because atoum as bundle need to be run from app root path
2013-11-01 03:46:46 -07:00
Jimmy Cleuren 924dadcdcd remove the double buildpath 2013-11-01 11:22:39 +01:00
a.cianfarani e2c7a4cd43 Added chdir because atoum as bundle need to be run from app root path 2013-10-28 17:41:15 +01:00
meadsteve 35b3db13d8 Fixing more tab -> space conversion issues. 2013-10-27 14:26:37 +00:00
meadsteve a453571fcb Adding the LoggedBuildContextTidier to the monolog logging so that the build id is added to log messages. 2013-10-27 14:25:43 +00:00
meadsteve e44c7b90d6 All build logs calls now pass the build through as part of the context so this gets recorded in the log message. 2013-10-27 14:21:08 +00:00
meadsteve fc2434b65d Exceptions can now be passed in to the failure logging function. 2013-10-27 12:51:49 +00:00
meadsteve b943c07f87 Fixing some formatting issues 2013-10-26 16:25:34 +01:00
meadsteve 8c88581021 Modified the builder so that it expects to have a psr3 compliant logger attached. 2013-10-26 16:15:29 +01:00
meadsteve 1989203635 Adding two custom log handlers. One to link the logs to symphony console output to the logging and another to record build specific information in the DB. 2013-10-26 16:11:46 +01:00
Sami Tikka 3d8be0e218 error handling like in other webhooks 2013-10-18 16:04:13 +03:00
Sami Tikka 6b63e47cfd gitcontroller, allows calling webhook for local/remote git project 2013-10-18 16:04:13 +03:00
Dan Cryer 4120cb683d Fixing PHPMD warnings count... Hopefully. 2013-10-12 09:50:15 +01:00
Dan Cryer 17a19c0707 Fixing PHPCS errors on PluginController 2013-10-12 09:44:51 +01:00
Dan Cryer 095bf9730d Merge pull request #180 from gabriel403/hotfix/composerHome
Hotfix/composer home
2013-10-17 03:56:22 -07:00
Pavel Pavlov d214c9dc0e Reduced cyclomatic complexity 2013-10-17 14:51:20 +04:00
Gabriel Baker 7a0893737a composer_home 2013-10-17 08:53:05 +01:00
Gabriel Baker 24602766aa fix for composer_home being missing 2013-10-17 08:50:37 +01:00
Pavel Pavlov 2c1c5bfbe9 Typo fix 2013-10-17 04:17:06 +04:00
Pavel Pavlov f1b13e48f8 Cleanup 2013-10-17 02:17:40 +04:00
Pavel Pavlov 7b3eea7cbb Added Phing plugin 2013-10-17 02:12:42 +04:00
Allister Antosik e120773803 Added warning message if install.php is detected
If the file install.php is detected an alert-danger message is
displayed on all pages.
2013-10-15 19:19:44 +01:00
Mathieu Dumoulin b197a9c030 Added leading slash to closure to prevent reference to PHPCI namespace
Don't forget to put \ in front of PHP namespaced objects or you end up in your own namespace.

In reference to commit: 53993a1add
2013-10-15 09:34:24 -04:00
Dan Cryer 53993a1add Fixing callable error in run builds, fixes #170 2013-10-15 14:29:23 +01:00
Dan Cryer 2a47b08fec Removed Github configuration from ProjectController / ProjectForm and added it to a new settings area. 2013-10-11 21:51:23 +01:00
Dan Cryer cc86e85adb Fixing Github Controller to ignore all-zeroes commit IDs 2013-10-10 01:38:32 +01:00
Dan Cryer 13dbcc4260 Fixing Github postbacks. 2013-10-10 01:30:40 +01:00
Dan Cryer 5213a00a3a Adding some github debug stuff 2013-10-10 01:27:43 +01:00
Dan Cryer d46ea12dd7 Fixing summary table so it doesn't completely die when there is a running build. 2013-10-10 01:26:06 +01:00
Dan Cryer a5734fb330 Fixing some more PHPCS/PHPMD errors 2013-10-10 01:19:42 +01:00
Dan Cryer 05be06f9b3 Fixing some more PHPCS/PHPMD errors 2013-10-10 01:18:05 +01:00
Dan Cryer 16003ff01b Fixing some more PHPCS/PHPMD errors 2013-10-10 01:12:30 +01:00
Dan Cryer 77fae9a56d Holy cleanup, batman. 2013-10-10 01:01:06 +01:00
Dan Cryer 4cbfc06022 Adding a more standard PHP Lint plugin. Fixes #111 2013-10-09 17:21:33 +01:00
Dan Cryer d060227fbd Better docblock type hinting for stores. 2013-10-08 18:24:20 +01:00
Dan Cryer cccf0b9869 Testing IRC Plugin 2013-10-08 17:23:21 +01:00
Dan Cryer e38d9b646a Adding IRC plugin 2013-10-08 17:19:44 +01:00
Dan Cryer 160097182f New plugins screen 2013-10-08 16:28:46 +01:00
Dan Cryer edc4fc1b1b Fixes 2013-10-08 13:52:05 +01:00
Dan Cryer 56b8a57efd Renaming key / value columns in build_meta with meta_key / meta_value to avoid SQL errors. 2013-10-08 13:00:38 +01:00
Dan Cryer 524a0cc58a Replacing build status images 2013-10-08 12:50:59 +01:00
Dan Cryer adab6b20c0 Fixing build status image. 2013-10-08 12:41:12 +01:00
Dan Cryer 47672c014f Adding basic Behat plugin, fixes #101 2013-10-08 10:26:11 +01:00
Dan Cryer ede49c8c69 Adding @dongilbert's Codeception plugin. Fixes #86 2013-10-08 10:21:54 +01:00
Dan Cryer 8f6766d1ae Adding favicon, fixes #71 2013-10-08 09:08:52 +01:00
Dan Cryer 0dea956e87 Adding default values to project table, fixes #158 2013-10-08 09:00:22 +01:00
Dan Cryer 0c8d9c0f74 Added findBinary, fixes #115 2013-10-08 08:50:10 +01:00
Dan Cryer f7e466bdb1 Fixes #147 2013-10-08 08:30:15 +01:00
Dan Cryer df1dc0d666 Error reporting. See #142 2013-10-08 08:23:07 +01:00
Dan Cryer deb71ec9e2 Fixes #125 2013-10-08 07:50:42 +01:00
Dan Cryer cc09d95a3d SQL strict mode fixes. Closes #127 2013-10-08 07:45:20 +01:00
Dan Cryer b33189e08e UI plugins, including quality trend chart, logs and lines of code. Some UI tweaks. 2013-10-08 07:21:46 +01:00
Dan Cryer ef4862e39a Adding extended latin character set for the roboto font 2013-10-07 12:58:15 +01:00
Dan Cryer a39944a97c Merge pull request #154 from grogy/visual-style
fixed visual style (spaces, aligment, etc.)
2013-09-27 07:19:04 -07:00
Václav Makeš 05e42cc831 added extended latin for font 2013-09-20 23:28:59 +02:00
Václav Makeš b4f5b2f731 fixed visual style (spaces, aligment, etc.) 2013-09-20 23:18:22 +02:00
Dan Cryer 00ae1a1bfb Merge pull request #153 from grogy/parallel-lint
Added initial version of the PHP parallel lint plugin.
2013-09-20 09:11:31 -07:00
Dan Cryer b7bf0fed51 Merge pull request #150 from c2is/master
Added GitLab infos (WebHook url) in the project page if it's a GitLab's project
2013-09-20 09:10:15 -07:00
Dan Cryer c84a6a35b2 Merge pull request #149 from brooksie155/master
Small updates
2013-09-20 09:09:50 -07:00
Dan Cryer 47ac812432 Merge pull request #144 from SibSet/master
Mercurial build support
2013-09-20 09:09:19 -07:00
Václav Makeš 12ee81a888 Added initial version of the PHP parallel lint plugin. 2013-09-20 12:58:41 +02:00
Roy Lindauer 0282e68119 Renamed IndexController to HomeController to avoid errors with Apache Multiviews. Related to issue #74
Updated ajax url request path in index.phtml
2013-09-19 23:51:04 -07:00
a.cianfarani e91b9426e0 Correct indentation 2013-09-19 09:46:29 +02:00
a.cianfarani 4cad2b4078 Added GitLab infos (WebHook url) in the project page if it's a GitLab's project 2013-09-19 09:34:51 +02:00
Stephen Brooks 1fb292fefb updated 2013-09-18 09:59:53 +01:00
Stephen Brooks fd3097514b Fix fatal error when $project is not set, which prevents access to Interface 2013-09-18 09:57:44 +01:00
Stephen Brooks 459269f61f Fix notice on command line when PHPCI_DB_HOST not set 2013-09-18 09:56:54 +01:00
Stephen Brooks df32fcbbd4 Fix bug resulting in UI displaying errors (level of error reporting enabled may have been partially cause) when project object not set. 2013-09-18 09:56:13 +01:00
Stephen Brooks f5c7f85bed Add ability to specify sub path and override global ignore list in phpci.yml 2013-09-18 09:54:23 +01:00
Stephen Brooks 9b4c35a11e Add ability to specify project sub-path and set flag for code coverage 2013-09-18 09:53:01 +01:00
Pavel Gopanenko e86852efa5 Mercurial build support 2013-09-04 19:54:26 +07:00
a.cianfarani 7c06aa4273 Coding style... 2013-08-28 10:49:10 +02:00
a.cianfarani 17852f8aa8 Clean %buildurl% var for message option: just url given now, not the html link 2013-08-28 10:47:00 +02:00
a.cianfarani 03c5fb5558 Added %buildurl% var for message option 2013-08-28 10:43:29 +02:00
a.cianfarani 5cc9ddb068 Added campfire plugin to allow pushing messages 2013-08-27 18:35:10 +02:00
a.cianfarani 3e0f5d793c Allow atoum to be called from the tested project if executable option is set.
Improve errors catching
2013-08-23 18:13:12 +02:00
a.cianfarani f28ba71be5 Merge remote-tracking branch 'upstream/master' 2013-08-23 16:06:59 +02:00