Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
4b3e81b
Code styling compliance with joomla/coding-standards + code dependency
jatitoam Apr 30, 2018
5798063
File headers
jatitoam Apr 30, 2018
7cd1029
Code styling and compliance
jatitoam Apr 30, 2018
1b528e9
Added back travis file for code standards compliance
jatitoam Apr 30, 2018
4891f9c
Added back travis file for code standards compliance
jatitoam Apr 30, 2018
3fd9e1a
Added back travis file for code standards compliance
jatitoam Apr 30, 2018
f2534cc
Added back travis file for code standards compliance
jatitoam Apr 30, 2018
9f6103e
Added back travis file for code standards compliance
jatitoam Apr 30, 2018
9da1762
Added back travis file for code standards compliance
jatitoam Apr 30, 2018
9a6c33f
Empty commit
jatitoam Apr 30, 2018
dae4bfa
Added back travis file for code standards compliance
jatitoam Apr 30, 2018
e682101
Added back travis file for code standards compliance
jatitoam Apr 30, 2018
db17a3a
Added back travis file for code standards compliance
jatitoam Apr 30, 2018
11a8e2c
Added back travis file for code standards compliance
jatitoam Apr 30, 2018
1da2b75
Added back travis file for code standards compliance
jatitoam Apr 30, 2018
e5e04a8
Added back travis file for code standards compliance
jatitoam Apr 30, 2018
b0e60a9
Added back travis file for code standards compliance
jatitoam Apr 30, 2018
7f5afa0
Added back travis file for code standards compliance
jatitoam Apr 30, 2018
c27c05c
Coding standards
jatitoam Apr 30, 2018
621b52e
Travis
jatitoam Apr 30, 2018
6fbbc06
Merge branch 'develop' into codestyle
jatitoam Jun 2, 2018
395197e
CS fixes after merging to latest develop
jatitoam Jun 2, 2018
2a06968
Added back old php versions from 5.5 and on
jatitoam Jun 2, 2018
1f45ac7
Used composer update for old versions of php
jatitoam Jun 2, 2018
7b7bcac
Fixed php version builds and fixed v.2.3.7 for Codeception
jatitoam Jun 2, 2018
ab9c249
Fixed Travis build matrix
jatitoam Jun 2, 2018
a8131c9
Empty push to force build
jatitoam Jun 2, 2018
9d8f79a
Switched from Travis to Drone for phpcs checks
jatitoam Jun 9, 2018
e4a002d
Removed extra image
jatitoam Jun 9, 2018
21b5169
Merge branch 'develop' into codestyle
jatitoam Jul 1, 2018
3d99c20
Codeception v.2.4 compatibility
jatitoam Jul 1, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
pipeline:
phpcs:
image: composer:latest
commands:
- echo $(date)
- composer install --prefer-dist --no-progress --no-interaction
- vendor/bin/robo check:codestyle
- echo $(date)
26 changes: 20 additions & 6 deletions RoboFile.php
Original file line number Diff line number Diff line change
@@ -1,33 +1,47 @@
<?php

/**
* This is project's console commands configuration for Robo task runner.
*
* @see http://robo.li/
* Download robo.phar from http://robo.li/robo.phar and type in the root of the repo: $ php robo.phar
* Or do: $ composer update, and afterwards you will be able to execute robo like $ php vendor/bin/robo
*
* @package JoomlaBrowser
*
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @see http://robo.li/
*
* @since 1.0.0
*/

class RoboFile extends \Robo\Tasks
{
// Load tasks from composer, see composer.json
use Joomla\Testing\Robo\Tasks\loadTasks;
use Joomla\Testing\Robo\Tasks\LoadTasks;

/**
* Check the code style of the project against a passed sniffers using PHP_CodeSniffer_CLI
*
* @param string $sniffersPath Path to the sniffers. If not provided Joomla Coding Standards will be used.
* @return void
*/
public function checkCodestyle($sniffersPath = null)
{
if (is_null($sniffersPath))
{
$sniffersPath = __DIR__ . '/.travis/phpcs/Joomla';
$sniffersPath = __DIR__ . '/.tmp/coding-standards';
}

$this->taskCodeChecks()
->setBaseRepositoryPath(__DIR__)
->setCodeStyleStandardsFolder($sniffersPath)
->setCodeStyleCheckFolders(['/src'])
->setCodeStyleCheckFolders(
array(
'src'
)
)
->checkCodeStyle()
->run()
->stopOnFail();
}
}
}
14 changes: 11 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,22 @@
],
"require": {
"php" : ">=5.5.9",
"consolidation/robo" : "~1"
"consolidation/robo" : "^1",
"symfony/console" : "~3|~4",
"symfony/filesystem" : "~3|~4",
"symfony/finder" : "~3|~4",
"symfony/process" : "~3|~4",
"symfony/yaml" : "~3|~4"
},
"require-dev": {
"joomla-projects/joomla-testing-robo" : "~1.0"
"joomla-projects/joomla-testing-robo" : "dev-container-test",
"codeception/codeception" : "~2.4"
},
"autoload": {
"psr-4": {
"Codeception\\Module\\" : "src"
}
}
},
"minimum-stability" : "dev",
"prefer-stable" : true
}
Loading