-
Notifications
You must be signed in to change notification settings - Fork 1
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
19 changed files
with
934 additions
and
584 deletions.
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,12 @@ | ||
/assets export-ignore | ||
/test export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
.travis.yml export-ignore | ||
composer.json export-ignore | ||
composer.lock export-ignore | ||
CONTRIBUTING.md export-ignore | ||
package.json export-ignore | ||
phpcs.xml export-ignore | ||
phpunit.xml export-ignore | ||
RoboFile.php export-ignore |
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 |
---|---|---|
|
@@ -4,4 +4,5 @@ composer.lock | |
/dist/ | ||
.idea | ||
tests-clover.xml | ||
tests-junit.xml | ||
tests-junit.xml | ||
.phpunit.result.cache |
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 |
---|---|---|
@@ -1,12 +1,13 @@ | ||
language: php | ||
dist: trusty | ||
php: | ||
- '5.5' | ||
- '5.6' | ||
- '7.0' | ||
- '7.1' | ||
- '7.2' | ||
- '7.3' | ||
- '7.4' | ||
before_script: | ||
- composer install | ||
script: | ||
- composer test-all | ||
notifications: | ||
slack: | ||
secure: "ScXTSMO65veI1jA6TBHGDUtvDqEMkqJykaNf7vLLbb7YIxPIHHNBiX/wcjOHVFfQXZCV3qxQrflB7Lbm9qVUsAv861jTO9x/ZkECl5QhRoc0DIznejwZoypx0HJ9tBZFYT6qNUkViXRKZ/ILAiBLU9Yw52WACtQB9hu3FNFZwmKsjipvV8Sne1qEyTkLYLaMphsbC5mtXYdKMHvdt39jsYsk91UWGeYbXQ37LkMbsaG/8YHXF724d5JO7BRGoThw6p5knKAO5fk29V7GfNqg2h+hnGyNIUOcmxujgMDMFLyFCGMZpPoBa+3jyWWgq4PgpQt0F5VZtJFGoXCGcoMQm5IbVfqkSKJ4jYhqiSIrqSebLmzoPHepWX3yn8tpfOiBWjC6K9w9esp6vcZf26rnAJcjcGkA01rMrHRwR+UEMCLvj7q0DR0qzi/AFeED6gtpODzUf93Rp42Tz1iGvWIbgeCtkCWjfPO6XLuNiqGVPEVaT5BDKqlqbijdKxxp7yh1fdt8s0fInWdIsgoWTbU9DC1W4ZiqtQW7oYO+QtFZMaD6kZWpSqJUwB3kW5JL3odAUEm8bLbRWBvK5ZjGdaGqSbOs6f9gAKcf86iQQhwzCJSOgFlLlKFv9smicjPC+BGOxgx32pgseHNPWn6tmEo/ihmmr/NbbqoOusUKX9gQbA4=" |
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 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
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
* @author Stefan Kalscheuer <[email protected]> | ||
* | ||
* @package Statify_Blacklist | ||
* @version 1.4.4 | ||
* @version 1.5.0 | ||
*/ | ||
|
||
use Robo\Exception\TaskException; | ||
|
@@ -19,10 +19,10 @@ | |
*/ | ||
class RoboFile extends Tasks { | ||
const PROJECT_NAME = 'statify-blacklist'; | ||
const SVN_URL = 'https://plugins.svn.wordpress.org/statify-blacklist'; | ||
const SVN_URL = 'https://plugins.svn.wordpress.org/statify-blacklist'; | ||
|
||
const OPT_TARGET = 'target'; | ||
const OPT_SKIPTEST = 'skipTests'; | ||
const OPT_TARGET = 'target'; | ||
const OPT_SKIPTEST = 'skipTests'; | ||
const OPT_SKIPSTYLE = 'skipStyle'; | ||
|
||
/** | ||
|
@@ -134,13 +134,21 @@ public function build( | |
*/ | ||
private function bundle() { | ||
$this->say( 'Bundling resources...' ); | ||
$this->taskCopyDir( [ | ||
'inc' => $this->target_dir . '/' . $this->final_name . '/inc', | ||
'views' => $this->target_dir . '/' . $this->final_name . '/views', | ||
] )->run(); | ||
$this->taskCopyDir( | ||
[ | ||
'inc' => $this->target_dir . '/' . $this->final_name . '/inc', | ||
'views' => $this->target_dir . '/' . $this->final_name . '/views', | ||
] | ||
)->run(); | ||
$this->_copy( 'statify-blacklist.php', $this->target_dir . '/' . $this->final_name . '/statify-blacklist.php' ); | ||
$this->_copy( 'README.md', $this->target_dir . '/' . $this->final_name . '/README.md' ); | ||
$this->_copy( 'LICENSE.md', $this->target_dir . '/' . $this->final_name . '/LICENSE.md' ); | ||
$this->_copy( 'README.md', $this->target_dir . '/' . $this->final_name . '/README.md' ); | ||
|
||
// Remove content before title (e.g. badges) from README file. | ||
$this->taskReplaceInFile( $this->target_dir . '/' . $this->final_name . '/README.md' ) | ||
->regex( '/^[^\\#]*/' ) | ||
->to( '' ) | ||
->run(); | ||
} | ||
|
||
/** | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Oops, something went wrong.