Skip to content

Commit 1301794

Browse files
jatitoamyvesh
authored andcommitted
Updated to newest robo and joomla testing robo dependencies (#123)
* Updated to newest robo and joomla testing robo dependencies * Updated PHP requirements for matching
1 parent e5223b9 commit 1301794

File tree

4 files changed

+1045
-280
lines changed

4 files changed

+1045
-280
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: php
22
php:
3-
- 5.4
3+
- 5.5
44
before_script:
55
- composer install
66

RoboFile.php

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,7 @@
88
class RoboFile extends \Robo\Tasks
99
{
1010
// Load tasks from composer, see composer.json
11-
use \joomla_projects\robo\loadTasks;
12-
13-
private $extension = '';
14-
15-
/**
16-
* Set the Execute extension for Windows Operating System
17-
*
18-
* @return void
19-
*/
20-
private function setExecExtension()
21-
{
22-
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')
23-
{
24-
$this->extension = '.exe';
25-
}
26-
}
11+
use Joomla\Testing\Robo\Tasks\loadTasks;
2712

2813
/**
2914
* Check the code style of the project against a passed sniffers using PHP_CodeSniffer_CLI
@@ -34,15 +19,15 @@ public function checkCodestyle($sniffersPath = null)
3419
{
3520
if (is_null($sniffersPath))
3621
{
37-
$this->say('Downloading Joomla Coding Standards Sniffers');
38-
$this->_exec("git $this->extension clone -b master --single-branch --depth 1 https://github.com/joomla/coding-standards.git .travis/phpcs/Joomla");
3922
$sniffersPath = __DIR__ . '/.travis/phpcs/Joomla';
4023
}
4124

42-
$this->taskCheckCodeStyle()
43-
->inspect(__DIR__ . '/src')
44-
->dontStopOnFail(true)
45-
->standard($sniffersPath)
46-
->run();
25+
$this->taskCodeChecks()
26+
->setBaseRepositoryPath(__DIR__)
27+
->setCodeStyleStandardsFolder($sniffersPath)
28+
->setCodeStyleCheckFolders(['/src'])
29+
->checkCodeStyle()
30+
->run()
31+
->stopOnFail();
4732
}
4833
}

composer.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
{
2-
"name": "joomla-projects/joomla-browser",
3-
"description": "joomla-browser Codeception Module",
4-
"keywords":["BDD", "acceptance testing", "tdd", "joomla"],
5-
"homepage":"https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception",
6-
"license": "GPL-2.0+",
7-
"authors": [
2+
"name" : "joomla-projects/joomla-browser",
3+
"description" : "joomla-browser Codeception Module",
4+
"keywords" : ["BDD", "acceptance testing", "tdd", "joomla"],
5+
"homepage" : "https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception",
6+
"license" : "GPL-2.0+",
7+
"authors" : [
88
{
9-
"name": "Puneet Kala",
10-
"email": "[email protected]"
9+
"name" : "Puneet Kala",
10+
"email" : "[email protected]"
1111
},
1212
{
13-
"name": "Javier Gomez",
14-
"email": "[email protected]"
13+
"name" : "Javier Gomez",
14+
"email" : "[email protected]"
1515
}
1616
],
1717
"require": {
18-
"php": ">=5.3.0"
18+
"php" : ">=5.5.9",
19+
"consolidation/robo" : "~1"
1920
},
2021
"require-dev": {
21-
"codegyre/robo": "^0.5.3",
22-
"joomla-projects/robo": "dev-master"
22+
"joomla-projects/joomla-testing-robo" : "~1.0"
2323
},
2424
"autoload": {
2525
"psr-4": {
26-
"Codeception\\Module\\": "src"
26+
"Codeception\\Module\\" : "src"
2727
}
2828
}
2929
}

0 commit comments

Comments
 (0)