forked from ProfessionalWiki/Maps
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into danwe_custom-maps
Conflicts: Maps.classes.php Maps.i18n.php Maps.php includes/Maps_LayerPage.php includes/Maps_Layers.php
- Loading branch information
Showing
105 changed files
with
3,115 additions
and
2,473 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 |
---|---|---|
@@ -1,13 +1,11 @@ | ||
.* | ||
*~ | ||
*.kate-swp | ||
|
||
!.gitignore | ||
!.gitreview | ||
!.* | ||
.idea/ | ||
|
||
!.travis.yml | ||
!.travis.sh | ||
!.coveralls.yml | ||
vendor/ | ||
extensions/ | ||
|
||
composer.phar | ||
composer.lock |
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 @@ | ||
inherit: true | ||
|
||
tools: | ||
php_code_coverage: false | ||
php_code_sniffer: true | ||
php_cpd: true | ||
php_cs_fixer: true | ||
php_loc: true | ||
php_mess_detector: true | ||
php_pdepend: true | ||
php_analyzer: true | ||
sensiolabs_security_checker: true |
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,23 +1,32 @@ | ||
language: php | ||
|
||
php: | ||
- 5.3 | ||
- 5.4 | ||
- 5.5 | ||
env: | ||
- THENEEDFORTHIS=FAIL | ||
|
||
before_script: | ||
- bash .travis.sh | ||
matrix: | ||
include: | ||
- env: DBTYPE=mysql; MW=master | ||
php: 5.3 | ||
- env: DBTYPE=mysql; MW=1.19.0 | ||
php: 5.4 | ||
- env: DBTYPE=mysql; MW=1.21.0 | ||
php: 5.5 | ||
- env: DBTYPE=sqlite; MW=master | ||
php: 5.4 | ||
- env: DBTYPE=sqlite; MW=1.19.0 | ||
php: 5.5 | ||
exclude: | ||
- env: THENEEDFORTHIS=FAIL | ||
|
||
script: | ||
- cd ../phase3/extensions/Maps | ||
- phpunit --coverage-clover ../../extensions/Maps/build/logs/clover.xml | ||
before_script: bash ./build/travis/before_script.sh | ||
|
||
after_script: | ||
- php vendor/bin/coveralls -v | ||
script: bash ./build/travis/script.sh | ||
|
||
after_success: bash ./build/travis/after_success.sh | ||
|
||
notifications: | ||
email: | ||
recipients: | ||
- [email protected] | ||
on_success: change | ||
on_failure: always | ||
irc: | ||
channels: | ||
- "chat.freenode.net#semantic-mediawiki" | ||
on_success: never | ||
on_failure: always |
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 |
---|---|---|
|
@@ -5,9 +5,6 @@ | |
* | ||
* @since 0.7 | ||
* | ||
* @file Maps.hooks.php | ||
* @ingroup Maps | ||
* | ||
* @licence GNU GPL v2+ | ||
* @author Jeroen De Dauw < [email protected] > | ||
* @author Daniel Werner | ||
|
@@ -47,51 +44,6 @@ public static function addToAdminLinks( ALTree &$admin_links_tree ) { | |
return true; | ||
} | ||
|
||
/** | ||
* Hook to add PHPUnit test cases. | ||
* @see https://www.mediawiki.org/wiki/Manual:Hooks/UnitTestsList | ||
* | ||
* @since 0.7 | ||
* | ||
* @param array &$files | ||
* | ||
* @return boolean | ||
*/ | ||
public static function registerUnitTests( array &$files ) { | ||
// @codeCoverageIgnoreStart | ||
$testFiles = array( | ||
'elements/Circle', | ||
'elements/ImageOverlay', | ||
'elements/Line', | ||
'elements/Location', | ||
'elements/Polygon', | ||
'elements/Rectangle', | ||
|
||
'parserhooks/Coordinates', | ||
'parserhooks/DisplayMap', | ||
'parserhooks/Distance', | ||
'parserhooks/Finddestination', | ||
'parserhooks/Geocode', | ||
'parserhooks/Geodistance', | ||
'parserhooks/MapsDoc', | ||
|
||
'parsers/DistanceParser', | ||
'parsers/LineParser', | ||
'parsers/LocationParser', | ||
'parsers/WmsOverlayParser', | ||
|
||
'Element', | ||
'MapsDistanceParser', | ||
); | ||
|
||
foreach ( $testFiles as $file ) { | ||
$files[] = __DIR__ . '/tests/phpunit/' . $file . 'Test.php'; | ||
} | ||
|
||
return true; | ||
// @codeCoverageIgnoreEnd | ||
} | ||
|
||
/** | ||
* Intercept pages in the Layer namespace to handle them correctly. | ||
* | ||
|
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,6 +4,7 @@ | |
/** English | ||
* @author netbrain | ||
*/ | ||
// @codingStandardsIgnoreFile | ||
|
||
$specialPageAliases = array(); | ||
|
||
|
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.