-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4,921 changed files
with
462,650 additions
and
316,823 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
working_directory: ~/processmaker | ||
docker: | ||
- image: devopsstacks/pm:n225-phpunit | ||
steps: | ||
- checkout | ||
- run: service mysqld restart | ||
- run: yum -y install php71-imap | ||
- run: mysql -u root -ppassword -e "create database test;" | ||
- run: mysql -u root -ppassword -e "create database testexternal;" | ||
- run: composer install | ||
- run: | ||
name: Run Test Units | ||
command: | | ||
mkdir coverage | ||
vendor/phpunit/phpunit/phpunit --testdox-html coverage/result.html --coverage-html coverage tests/unit/ | ||
- store_artifacts: | ||
path: coverage | ||
destination: coverage | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
|
||
namespace App\Console\Commands; | ||
|
||
use Maveriks\WebApplication; | ||
|
||
trait AddParametersTrait | ||
{ | ||
|
||
/** | ||
* Create a new queue command. | ||
* | ||
* @return void | ||
*/ | ||
public function __construct() | ||
{ | ||
$this->signature .= ' | ||
{--workspace=workflow : ProcessMaker Indicates the workspace to be processed.} | ||
{--processmakerPath=./ : ProcessMaker path.} | ||
'; | ||
|
||
$this->description .= ' (ProcessMaker has extended this command)'; | ||
|
||
parent::__construct(); | ||
} | ||
|
||
/** | ||
* Execute the console command. | ||
* | ||
* @return void | ||
*/ | ||
public function handle() | ||
{ | ||
$workspace = $this->option('workspace'); | ||
if (!empty($workspace)) { | ||
$webApplication = new WebApplication(); | ||
$webApplication->setRootDir($this->option('processmakerPath')); | ||
$webApplication->loadEnvironment($workspace, false); | ||
} | ||
parent::handle(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
|
||
namespace App\Console\Commands; | ||
|
||
use Illuminate\Filesystem\Filesystem; | ||
use Illuminate\Queue\Console\FailedTableCommand as BaseFailedTableCommand; | ||
use Illuminate\Support\Composer; | ||
|
||
class FailedTableCommand extends BaseFailedTableCommand | ||
{ | ||
/** | ||
* The console command name. | ||
* | ||
* @var string | ||
*/ | ||
protected $signature = 'queue:failed-table'; | ||
|
||
/** | ||
* This contains the necessary code to add parameters. | ||
*/ | ||
use AddParametersTrait; | ||
|
||
/** | ||
* Create a new queue failed-table command. | ||
* | ||
* @return void | ||
*/ | ||
public function __construct(Filesystem $files, Composer $composer) | ||
{ | ||
$this->signature .= ' | ||
{--workspace=workflow : ProcessMaker Indicates the workspace to be processed.} | ||
{--processmakerPath=./ : ProcessMaker path.} | ||
'; | ||
|
||
$this->description .= ' (ProcessMaker has extended this command)'; | ||
|
||
parent::__construct($files, $composer); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace App\Console\Commands; | ||
|
||
use Illuminate\Queue\Console\FlushFailedCommand as BaseFlushFailedCommand; | ||
|
||
class FlushFailedCommand extends BaseFlushFailedCommand | ||
{ | ||
/** | ||
* The console command name. | ||
* | ||
* @var string | ||
*/ | ||
protected $signature = 'queue:flush'; | ||
|
||
/** | ||
* This contains the necessary code to add parameters. | ||
*/ | ||
use AddParametersTrait; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace App\Console\Commands; | ||
|
||
use Illuminate\Queue\Console\ForgetFailedCommand as BaseForgetFailedCommand; | ||
|
||
class ForgetFailedCommand extends BaseForgetFailedCommand | ||
{ | ||
|
||
/** | ||
* This contains the necessary code to add parameters. | ||
*/ | ||
use AddParametersTrait; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace App\Console\Commands; | ||
|
||
use Illuminate\Queue\Console\ListFailedCommand as BaseListFailedCommand; | ||
|
||
class ListFailedCommand extends BaseListFailedCommand | ||
{ | ||
/** | ||
* The console command name. | ||
* | ||
* @var string | ||
*/ | ||
protected $signature = 'queue:failed'; | ||
|
||
/** | ||
* This contains the necessary code to add parameters. | ||
*/ | ||
use AddParametersTrait; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace App\Console\Commands; | ||
|
||
use Illuminate\Queue\Console\RestartCommand as BaseRestartCommand; | ||
|
||
class RestartCommand extends BaseRestartCommand | ||
{ | ||
/** | ||
* The console command name. | ||
* | ||
* @var string | ||
*/ | ||
protected $signature = 'queue:restart'; | ||
|
||
/** | ||
* This contains the necessary code to add parameters. | ||
*/ | ||
use AddParametersTrait; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace App\Console\Commands; | ||
|
||
use Illuminate\Queue\Console\RetryCommand as BaseRetryCommand; | ||
|
||
class RetryCommand extends BaseRetryCommand | ||
{ | ||
|
||
/** | ||
* This contains the necessary code to add parameters. | ||
*/ | ||
use AddParametersTrait; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
|
||
namespace App\Console\Commands; | ||
|
||
use Illuminate\Filesystem\Filesystem; | ||
use Illuminate\Queue\Console\TableCommand as BaseTableCommand; | ||
use Illuminate\Support\Composer; | ||
|
||
class TableCommand extends BaseTableCommand | ||
{ | ||
/** | ||
* The console command name. | ||
* | ||
* @var string | ||
*/ | ||
protected $signature = 'queue:table'; | ||
|
||
/** | ||
* This contains the necessary code to add parameters. | ||
*/ | ||
use AddParametersTrait; | ||
|
||
/** | ||
* Create a new queue table command. | ||
* | ||
* @return void | ||
*/ | ||
public function __construct(Filesystem $files, Composer $composer) | ||
{ | ||
$this->signature .= ' | ||
{--workspace=workflow : ProcessMaker Indicates the workspace to be processed.} | ||
{--processmakerPath=./ : ProcessMaker path.} | ||
'; | ||
|
||
$this->description .= ' (ProcessMaker has extended this command)'; | ||
|
||
parent::__construct($files, $composer); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
namespace App\Console\Commands; | ||
|
||
use Illuminate\Queue\Console\WorkCommand as BaseWorkCommand; | ||
use Illuminate\Queue\Worker; | ||
|
||
class WorkCommand extends BaseWorkCommand | ||
{ | ||
|
||
use AddParametersTrait; | ||
|
||
/** | ||
* Create a new queue work command. | ||
* | ||
* @param \Illuminate\Queue\Worker $worker | ||
* | ||
* @return void | ||
*/ | ||
public function __construct(Worker $worker) | ||
{ | ||
$this->signature .= ' | ||
{--workspace=workflow : ProcessMaker Indicates the workspace to be processed.} | ||
{--processmakerPath=./ : ProcessMaker path.} | ||
'; | ||
|
||
$this->description .= ' (ProcessMaker has extended this command)'; | ||
|
||
parent::__construct($worker); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
namespace App\Jobs; | ||
|
||
class Email extends QueuedClosure | ||
{ | ||
|
||
} |
Oops, something went wrong.