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.php Maps_Settings.php includes/criteria/CriterionMapLayer.php includes/layers/Maps_ImageLayer.php includes/layers/Maps_KMLLayer.php includes/services/OpenLayers/CriterionOLLayer.php includes/services/OpenLayers/Maps_OpenLayers.php includes/services/OpenLayers/Maps_ParamOLLayers.php includes/services/OpenLayers/jquery.openlayers.js
- Loading branch information
Showing
155 changed files
with
7,351 additions
and
5,233 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,4 @@ | ||
# for php-coveralls | ||
service_name: travis-ci | ||
src_dir: includes | ||
coverage_clover: build/logs/clover.xml |
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,7 +1,13 @@ | ||
.* | ||
*~ | ||
*.kate-swp | ||
.*.swp | ||
|
||
!.gitignore | ||
!.gitreview | ||
|
||
!.travis.yml | ||
!.travis.sh | ||
!.coveralls.yml | ||
|
||
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,34 @@ | ||
#! /bin/bash | ||
|
||
set -x | ||
|
||
originalDirectory=$(pwd) | ||
|
||
cd .. | ||
|
||
git clone https://gerrit.wikimedia.org/r/p/mediawiki/core.git phase3 --depth 1 | ||
|
||
cd phase3 | ||
|
||
mysql -e 'create database its_a_mw;' | ||
php maintenance/install.php --dbtype mysql --dbuser root --dbname its_a_mw --dbpath $(pwd) --pass nyan TravisWiki admin | ||
|
||
cd extensions | ||
cp -r $originalDirectory Maps | ||
|
||
cd Maps | ||
composer require satooshi/php-coveralls:dev-master | ||
cd ../.. | ||
|
||
pwd | ||
ls -lap | ||
|
||
echo 'error_reporting(E_ALL| E_STRICT);' >> LocalSettings.php | ||
echo 'ini_set("display_errors", 1);' >> LocalSettings.php | ||
echo '$wgShowExceptionDetails = true;' >> LocalSettings.php | ||
echo '$wgDevelopmentWarnings = true;' >> LocalSettings.php | ||
echo "putenv( 'MW_INSTALL_PATH=$(pwd)' );" >> LocalSettings.php | ||
|
||
echo 'require_once( __DIR__ . "/extensions/Maps/Maps.php" );' >> LocalSettings.php | ||
|
||
php maintenance/update.php --quick |
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,23 @@ | ||
language: php | ||
|
||
php: | ||
- 5.3 | ||
- 5.4 | ||
- 5.5 | ||
|
||
before_script: | ||
- bash .travis.sh | ||
|
||
script: | ||
- cd ../phase3/extensions/Maps | ||
- phpunit --coverage-clover ../../extensions/Maps/build/logs/clover.xml | ||
|
||
after_script: | ||
- php vendor/bin/coveralls -v | ||
|
||
notifications: | ||
email: | ||
recipients: | ||
- [email protected] | ||
on_success: change | ||
on_failure: always |
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,76 @@ | ||
<?php | ||
|
||
$classes = array(); | ||
|
||
$classes['MapsHooks'] = __DIR__ . '/Maps.hooks.php'; | ||
|
||
$classes['Maps\Element'] = __DIR__ . '/includes/Element.php'; | ||
$classes['MapsMapper'] = __DIR__ . '/includes/Maps_Mapper.php'; | ||
$classes['MapsDistanceParser'] = __DIR__ . '/includes/Maps_DistanceParser.php'; | ||
$classes['MapsGeoFunctions'] = __DIR__ . '/includes/Maps_GeoFunctions.php'; | ||
$classes['Maps\Geocoders'] = __DIR__ . '/includes/Geocoders.php'; | ||
$classes['Maps\Geocoder'] = __DIR__ . '/includes/Geocoder.php'; | ||
$classes['MapsKMLFormatter'] = __DIR__ . '/includes/Maps_KMLFormatter.php'; | ||
$classes['MapsLayer'] = __DIR__ . '/includes/Maps_Layer.php'; | ||
$classes['MapsLayerPage'] = __DIR__ . '/includes/Maps_LayerPage.php'; | ||
$classes['MapsLayerGroup'] = __DIR__ . '/includes/Maps_LayerGroup.php'; | ||
$classes['MapsLayerTypes'] = __DIR__ . '/includes/Maps_LayerTypes.php'; | ||
$classes['MapsLayers'] = __DIR__ . '/includes/Maps_Layers.php'; | ||
$classes['iMappingService'] = __DIR__ . '/includes/iMappingService.php'; | ||
$classes['MapsMappingServices'] = __DIR__ . '/includes/Maps_MappingServices.php'; | ||
$classes['MapsMappingService'] = __DIR__ . '/includes/Maps_MappingService.php'; | ||
$classes['MapsBaseFillableElement'] = __DIR__ . '/includes/Maps_BaseFillableElement.php'; | ||
$classes['MapsBaseStrokableElement'] = __DIR__ . '/includes/Maps_BaseStrokableElement.php'; | ||
$classes['MapsDisplayMapRenderer'] = __DIR__ . '/includes/Maps_DisplayMapRenderer.php'; | ||
|
||
$classes['MapEditorHtml'] = __DIR__ . '/includes/editor/MapEditorHTML.php'; | ||
|
||
$classes['Maps\BaseElement'] = __DIR__ . '/includes/elements/BaseElement.php'; | ||
$classes['Maps\Circle'] = __DIR__ . '/includes/elements/Circle.php'; | ||
$classes['Maps\ImageOverlay'] = __DIR__ . '/includes/elements/ImageOverlay.php'; | ||
$classes['Maps\Line'] = __DIR__ . '/includes/elements/Line.php'; | ||
$classes['Maps\Location'] = __DIR__ . '/includes/elements/Location.php'; | ||
$classes['Maps\Polygon'] = __DIR__ . '/includes/elements/Polygon.php'; | ||
$classes['Maps\Rectangle'] = __DIR__ . '/includes/elements/Rectangle.php'; | ||
$classes['Maps\WmsOverlay'] = __DIR__ . '/includes/elements/WmsOverlay.php'; | ||
|
||
|
||
$classes['Maps\Api\Geocode'] = __DIR__ . '/includes/api/ApiGeocode.php'; | ||
|
||
$classes['Maps\ServiceParam'] = __DIR__ . '/includes/ServiceParam.php'; | ||
|
||
$classes['MapsCoordinates'] = __DIR__ . '/includes/parserhooks/Maps_Coordinates.php'; | ||
$classes['MapsDisplayMap'] = __DIR__ . '/includes/parserhooks/Maps_DisplayMap.php'; | ||
$classes['MapsDistance'] = __DIR__ . '/includes/parserhooks/Maps_Distance.php'; | ||
$classes['MapsFinddestination'] = __DIR__ . '/includes/parserhooks/Maps_Finddestination.php'; | ||
$classes['MapsGeocode'] = __DIR__ . '/includes/parserhooks/Maps_Geocode.php'; | ||
$classes['MapsGeodistance'] = __DIR__ . '/includes/parserhooks/Maps_Geodistance.php'; | ||
$classes['MapsMapsDoc'] = __DIR__ . '/includes/parserhooks/Maps_MapsDoc.php'; | ||
$classes['MapsLayerDefinition'] = __DIR__ . '/includes/parserhooks/Maps_LayerDefinition.php'; | ||
|
||
$classes['Maps\DistanceParser'] = __DIR__ . '/includes/parsers/DistanceParser.php'; | ||
$classes['Maps\LineParser'] = __DIR__ . '/includes/parsers/LineParser.php'; | ||
$classes['Maps\LocationParser'] = __DIR__ . '/includes/parsers/LocationParser.php'; | ||
$classes['Maps\PolygonParser'] = __DIR__ . '/includes/parsers/PolygonParser.php'; | ||
$classes['Maps\WmsOverlayParser'] = __DIR__ . '/includes/parsers/WmsOverlayParser.php'; | ||
|
||
$classes['iBubbleMapElement'] = __DIR__ . '/includes/properties/iBubbleMapElement.php'; | ||
$classes['iFillableMapElement'] = __DIR__ . '/includes/properties/iFillableMapElement.php'; | ||
$classes['iHoverableMapElement'] = __DIR__ . '/includes/properties/iHoverableMapElement.php'; | ||
$classes['iLinkableMapElement'] = __DIR__ . '/includes/properties/iLinkableMapElement.php'; | ||
$classes['iStrokableMapElement'] = __DIR__ . '/includes/properties/iStrokableMapElement.php'; | ||
|
||
$classes['MapsGeonamesGeocoder'] = __DIR__ . '/includes/geocoders/Maps_GeonamesGeocoder.php'; | ||
$classes['MapsGoogleGeocoder'] = __DIR__ . '/includes/geocoders/Maps_GoogleGeocoder.php'; | ||
|
||
$classes['MapsImageLayer'] = __DIR__ . '/includes/layers/Maps_ImageLayer.php'; | ||
|
||
$classes['SpecialMapEditor'] = __DIR__ . '/includes/specials/SpecialMapEditor.php'; | ||
|
||
$classes['Maps\Test\BaseElementTest'] = __DIR__ . '/tests/phpunit/elements/BaseElementTest.php'; | ||
$classes['Maps\Test\LineTest'] = __DIR__ . '/tests/phpunit/elements/LineTest.php'; | ||
$classes['Maps\Test\RectangleTest'] = __DIR__ . '/tests/phpunit/elements/RectangleTest.php'; | ||
|
||
$classes['Maps\Test\ParserHookTest'] = __DIR__ . '/tests/phpunit/parserhooks/ParserHookTest.php'; | ||
|
||
return $classes; |
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
Oops, something went wrong.