Commit graph

101 commits

Author SHA1 Message Date
Dan Cryer b24b01ec65 Fixing tests on install command 2015-11-07 12:47:39 +00:00
Dan Cryer 1385379f1a Merge pull request #1021 from mrobinsonuk/cleanup/spelling-corrections
Corrected a number of minor spelling errors.
2015-10-13 15:14:44 +01:00
Dan Cryer d8cbe68705 Merge pull request #992 from corpsee/feature-phpunit-fixes
Fixed TapParser parse fail
2015-10-13 15:03:09 +01:00
Dan Cryer fbc3da59dd Fix 2015-10-09 10:37:50 +01:00
Dan Cryer f747371c6d Fixing tests #2 2015-10-09 10:29:21 +01:00
Mark Robinson d2c512d94b Corrected a number of minor spelling errors.
Originally observed that "successful" was misspelled "succesfull" on the build view page. While correcting that, a number of other spelling errors were also corrected.
2015-06-25 15:21:23 +01:00
Adirelle ad29ba4cfd Track and display the build progression, for each stages and plugins.
Translations for the build summary.

Closed #944
2015-05-28 11:39:35 +02:00
Adirelle 4edefee761 Reworked the DaemonCommand.
* Accepts options for PID and log file.
* Uses posix_kill whenever available.
* Checks that the daemon actually started or stopped.
* Try to terminate then kill the daemon.
* Uses the logger or output instead of "echo".

Added a ProcessControl interface and implementations.

Closed #908
2015-05-28 10:55:59 +02:00
Vaidas Zilionis 15b6917f68 Allow see project build status in cctray xml format
Refactoring is done for BuildStatus information.
- Fixed all phpcs, phpmd errors
- Added test for my code (hurray 100 tests already :D)

Closed #705
2015-05-28 10:50:29 +02:00
corpsee 1c864cebed Fixed TapParser parse fail with valid data + added tests 2015-05-23 15:40:49 +06:00
Adirelle 5cd29ca7fc Allow to specify a mail template ('short' or 'long') in phpci.yml.
Email plugin: checks if the custom template exists before trying to use it.

Closed #933
2015-04-28 14:09:23 +02:00
Adirelle f46a8be648 LoggerConfig::getFor always returns the same instance of Logger for the same $name.
This avoid issues when push handlers/processors to that logger.
Use the Monolog\ErrorHandler to log errors and exceptions.
PHPCI/Logging/Handler becomes PHPCI/ErrorHandler.
And it only throws ErrorException for reported errors.
No need to initialize a second $loggerConfig in daemonise.

Close #892
2015-04-23 13:25:53 +02:00
Adirelle 209454c5f6 When starting a manual build, replace the "Manual" commit id with the HEAD hash.
Close #928
2015-04-23 13:13:29 +02:00
Adirelle f25b1d25dc Let CommandExecutor::findBinary throw an exception when the binary is missing.
Close #910
2015-04-22 12:19:05 +02:00
Jérémy DECOOL 9261f24d25 Command to create a new build
Close #889
2015-04-22 12:00:38 +02:00
Adirelle 452a5ba97c Enforce "en" lang in tests.
Some tests compare the result to english strings.

Do not test UnixCommandExecutor on Windows.

PharTest: explain why PHAR writing test are skipped.

InstallCommandTest: mock checkRequirements to allow the tests to run.

Run php_parallel_lint before all other tests.

Close #846
2015-04-22 11:49:26 +02:00
Adirelle f3c1a98cf1 Detailed webhook responses.
Fixed docblocks.

Reworked WebhookController to enforce Json responses in ::handleAction.

Check the project type match the webhook.

When creating several builds, do not stop on first error.

Try to create every builds and report 'ok' if at least one succeeds.

CS fix.

Fixed Uses.

Fixed the types accepted by the git webhook.

Added some really basic test.
2015-04-09 13:09:03 +02:00
Adirelle 9d4116e3c9 Reworked TapParser to be compliant and more robust.
Added another test case from #571.

Updated the output of TapParser::processTestLine.

Broke TapParser::parse down in simpler methods.

TapParser: ignore leading garbage and properly complain on missing TAP log.

TapParser: detect and report duplicated TAP log.

TapParser: got rid of the "test" and "suite" values.

They are only available with PHPUnit.

TapParser: append the message from yaml diagnostic to existing message.

Reworked the dispaly of test results.

PHPUnit plugin: pretty print test data.
2015-04-09 12:00:10 +02:00
Adirelle d804438a87 Use sensiolabs/ansi-to-html to parse the build logs.
Added an AnsiConverter helper.

Use the AnsiConverter in the email and page templates that display the build log.

Use a dedicated stylesheet for the ANSI converter.

It can be customized.
It can be inlined in the notifications.

Do not use ProphecyTestCase when not needed.
2015-04-09 11:54:57 +02:00
Jon Gotlin bf6ac530a6 Create admin command cleanup 2015-02-19 07:31:00 +01:00
Marco Vito Moscaritolo 2255767dc1 Fixed test that use genreated mail to see information. 2015-02-16 14:55:40 +01:00
Marco Vito Moscaritolo 885f947da8 Update loader config for test. 2015-02-16 14:55:17 +01:00
Marco Vito Moscaritolo 5b754fe07c Fixed config path for tests. 2015-02-16 14:54:41 +01:00
Marco Vito Moscaritolo 74b0513dd5 Remove unused code. 2015-02-16 14:54:41 +01:00
Marco Vito Moscaritolo 2aff5ab896 Fixed CS. 2015-02-16 14:54:41 +01:00
Marco Vito Moscaritolo 64bd64e07b Added more test case to validate subject, body, status code and mails on messages. 2015-02-16 14:54:38 +01:00
Marco Vito Moscaritolo 33ca150efb Added project mocking to allow using mail template on successfull build. 2015-02-16 14:52:45 +01:00
Marco Vito Moscaritolo 501ca58729 Remove unrequire parameters on constructur and fixed error on phpdoc. 2015-02-16 14:51:18 +01:00
Dan Cryer 0fc18503b2 Fixing install command tests. 2015-02-16 11:54:52 +00:00
Adirelle 353c4cafdb Remove duplicates from the list of recipients in the email plugin.
Closes #731
2015-02-03 11:58:18 +00:00
Adirelle cd4ff6c4ea Localisation support for dates throughout the front-end using moment.js.
Closes #734
Closes #732
2015-02-03 11:53:12 +00:00
Dan Cryer 9351e889e7 Fixing failing test 2015-02-03 11:20:46 +00:00
Dan Cryer 9aadcce4ca Fixing tests bootstrap 2015-02-03 10:43:44 +00:00
Sebastiaan van Stijn 9387bde61b Fix undefined variable '$config' in /Tests/bootstrap.php
When no config-file was found, no instance of Config
was created as well, resulting in:

PHP Notice:  Undefined variable: config in /Tests/bootstrap.php on line 41

This changes /Tests/bootstrap.php to always create an
instance of b8\Config(), even if no file was found.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Fixes #758
2015-02-03 10:30:51 +00:00
Dan Cryer a4e6134fde Fixing bootstrap 2014-12-08 15:09:57 +00:00
Dan Cryer c89d289408 Fixing tests 2014-12-08 15:04:44 +00:00
Marco Vito Moscaritolo 207411d5fc Adding non-interactive installation mode.
Closes #641
2014-12-03 10:52:14 +00:00
Wanderson e4c40c76af Adding Phar archive plugin.
Closes #659
Closes #106
2014-12-01 21:09:13 +00:00
Marco Vito Moscaritolo 0357103013 Removing PHPCI's custom autoloader in favour of Composer autoloader.
Closes #661
2014-12-01 17:20:54 +00:00
Wanderson 61d864e4f0 Add support for skipped tests in TAP Parser.
Closes #624
See #611
2014-11-13 17:33:27 +00:00
Dan Cryer 5c600f861e Switching project access information to use JSON instead of serialization, fixes #493 2014-07-30 15:13:50 +01:00
Dan Cryer d9045d54a7 Adding some tests for MailerFactory to ensure it works as expected with a provided configuration. Hopefully will help in debugging #523 2014-07-30 11:58:10 +01:00
Dan Cryer 23f7978cba Adding some tests for the UserService class. 2014-07-23 16:11:47 +01:00
Dan Cryer 3fd1bc2a36 More service layer functionality, builds now. Also some extra tests for projects and build models. 2014-07-14 16:02:36 +01:00
Dan Cryer 9a51a1458e Fixing some issues with project default branches, adding tests for that too 2014-07-14 14:59:04 +01:00
Dan Cryer 0a0c911356 More work on ProjectService and its tests 2014-07-14 14:37:51 +01:00
Dan Cryer af4cdd90b6 Initial work on adding a Services layer to PHPCI, for better testability. Starting with Projects 2014-07-14 14:01:29 +01:00
Corpsee 7c762c6042 Fixed annotation 2014-05-12 00:44:13 +07:00
Corpsee aa83103e87 Repaired tests for CommandExecutor 2014-05-12 00:43:41 +07:00
Corpsee a42dc67fad Fixed duplicate methods of CommandExecutor helper: executeCommand and buildAndExecuteCommand 2014-05-09 14:25:24 +07:00