Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Maps für Einsatzorte #114

Open
wants to merge 13 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Prev Previous commit
…into develop

# Conflicts:
#	src/Frontend.php
#	src/Frontend/ReportList.php
#	src/Options.php
#	src/einsatzverwaltung-admin.php
#	src/einsatzverwaltung-core.php
#	src/einsatzverwaltung-data.php
#	src/einsatzverwaltung-settings.php
#	src/einsatzverwaltung-shortcodes.php
#	tests/Admin/ReportEditTest.php
  • Loading branch information
jhbriese committed Mar 6, 2019
commit 0c22b7d5b4878cbedb14c037532a998798d27008
26 changes: 15 additions & 11 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
engines:
version: "2"
plugins:
phpcodesniffer:
enabled: true
config:
file_extensions: "php"
standard: "PSR1,PSR2"
encoding: utf-8
phpmd:
enabled: true
config:
standard: "PSR1,PSR2"
file_extensions:
- php
rulesets: "phpmd.xml"
csslint:
enabled: true
eslint:
enabled: true
csslint:
duplication:
enabled: true
fixme:
enabled: true
ratings:
paths:
- src/**/*.php
- src/**/*.js
- src/**/*.css
- tests/**/*.php
exclude_paths:
- src/font-awesome/**/*
exclude_patterns:
- src/font-awesome/
- vendor/
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
build
setupLocalTest.sh
vendor
composer.lock
.DS_Store
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "src/font-awesome"]
path = src/font-awesome
url = https://github.com/FortAwesome/Font-Awesome.git
82 changes: 65 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,79 @@ notifications:
on_success: never
on_failure: always

branches:
except:
- /^feature\/[-\w]+$/

php:
- '5.6'
- '7.0'
- '7.1'
- '7.2'

env:
- WP_VERSION=4.4.11 WP_MULTISITE=0
- WP_VERSION=4.5.10 WP_MULTISITE=0
- WP_VERSION=4.6.7 WP_MULTISITE=0
- WP_VERSION=4.7.6 WP_MULTISITE=0
- WP_VERSION=4.8.2 WP_MULTISITE=0
- WP_VERSION=4.7.12 WP_MULTISITE=0
- WP_VERSION=4.8.8 WP_MULTISITE=0
- WP_VERSION=4.9.9 WP_MULTISITE=0
- WP_VERSION=5.0.3 WP_MULTISITE=0
- WP_VERSION=5.1 WP_MULTISITE=0
- WP_VERSION=nightly WP_MULTISITE=0

stages:
- validate
- test

jobs:
include:
- stage: validate
name: "Basic Checks"
php: '7.3'
before_install:
- phpenv config-rm xdebug.ini
- composer require bartlett/php-compatinfo:5.* --dev
- composer require phpunit/phpunit:5.7.* --dev
before_script: skip
script: ./vendor/bin/phpunit -c phpunit-checks.xml --no-coverage
- stage: validate
name: 'Minimum requirement'
env: WP_VERSION=4.7 WP_MULTISITE=0
php: '5.3'
dist: precise
before_install:
- phpenv config-rm xdebug.ini
- composer require phpunit/phpunit:4.8.* --dev
script: ./vendor/bin/phpunit --no-coverage --exclude-group unittests
- stage: validate
name: 'Latest versions'
env: WP_VERSION=5.1 WP_MULTISITE=0
php: '7.3'
before_install: composer require phpunit/phpunit:5.7.* --dev
before_script:
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script: ./vendor/bin/phpunit
after_script:
- ./cc-test-reporter after-build --coverage-input-type clover --exit-code $TRAVIS_TEST_RESULT
- stage: test
name: 'Latest versions, pretty permalinks'
env: WP_VERSION=5.1 WP_MULTISITE=0 WP_TESTS_PERMALINK=PRETTY
php: '7.3'
- stage: test
name: 'Latest versions, PATHINFO permalinks'
env: WP_VERSION=5.1 WP_MULTISITE=0 WP_TESTS_PERMALINK=PATHINFO
php: '7.3'

matrix:
exclude:
- env: WP_VERSION=nightly WP_MULTISITE=0
php: '5.6'
allow_failures:
- env: WP_VERSION=nightly WP_MULTISITE=0
fast_finish: true

before_script:
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
- composer install --prefer-source

after_script:
- CODECLIMATE_REPO_TOKEN=c0e18ea554a37a7495947a34c818939c0599bde7c1efa3ee136989c053dde9da ./vendor/bin/test-reporter

addons:
code_climate:
repo_token: c0e18ea554a37a7495947a34c818939c0599bde7c1efa3ee136989c053dde9da
before_install:
- phpenv config-rm xdebug.ini
- composer require phpunit/phpunit:5.7.* --dev
install: composer install --prefer-source
before_script: bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
script: ./vendor/bin/phpunit --no-coverage
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Einsatzverwaltung
## Plugin zur Verwaltung von Feuerwehreinsätzen

[![Build Status](https://travis-ci.org/abrain/einsatzverwaltung.svg)](https://travis-ci.org/abrain/einsatzverwaltung) [![Code Climate](https://codeclimate.com/github/abrain/einsatzverwaltung/badges/gpa.svg)](https://codeclimate.com/github/abrain/einsatzverwaltung) [![Test Coverage](https://codeclimate.com/github/abrain/einsatzverwaltung/badges/coverage.svg)](https://codeclimate.com/github/abrain/einsatzverwaltung/coverage)
[![Build Status](https://travis-ci.org/abrain/einsatzverwaltung.svg)](https://travis-ci.org/abrain/einsatzverwaltung) [![Maintainability](https://api.codeclimate.com/v1/badges/e977859ca4c209053b79/maintainability)](https://codeclimate.com/github/abrain/einsatzverwaltung/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/e977859ca4c209053b79/test_coverage)](https://codeclimate.com/github/abrain/einsatzverwaltung/test_coverage)

Dieses Plugin fügt WordPress eine neue Beitragsart "Einsatzbericht" hinzu. Diese Einsatzberichte werden wie gewöhnliche WordPress-Beiträge erstellt, es können aber zusätzliche Informationen wie Alarmzeit, Art des Einsatzes, eingesetzte Fahrzeuge und vieles mehr angegeben werden. Zudem stellt das Plugin verschiedene Möglichkeiten zur Darstellung der Einsatzberichte zur Verfügung.

Expand All @@ -19,16 +19,17 @@ Pull Requests werden nur im Branch `develop` angenommen.
Das Plugin an sich liegt im Ordner `src`, alles andere dient der Unterstützung bei der Entwicklung.
Code aus einem anderen Branch als `master` sollte nicht für Produktivsysteme verwendet werden.

Der PHP-Code wird gemäß dem Coding Style Guide [PSR-2](http:https://www.php-fig.org/psr/psr-2/) formatiert.
Der PHP-Code wird gemäß dem Coding Style Guide [PSR-2](https://www.php-fig.org/psr/psr-2/) formatiert.
Klassen werden automatisch geladen, die Dateien sind nach [PSR-4](https://www.php-fig.org/psr/psr-4/) zu organisieren.

### Mindestvoraussetzungen
* PHP: 5.3.0
* WordPress: 4.4
* WordPress: 4.7

Auch wenn PHP 5.3 vorausgesetzt und derzeit noch als Minimum erhalten wird, werden die automatisierten Tests nur mit den [aktuellen PHP-Versionen](https://secure.php.net/supported-versions.php) durchgeführt.

### Social Media

* Twitter: [@einsatzvw](https://twitter.com/einsatzvw)
* Mastodon: [@einsatzverwaltung](https://chaos.social/@einsatzverwaltung)
* Facebook: [Einsatzverwaltung](https://www.facebook.com/einsatzverwaltung/)
* GNU social: [@einsatzverwaltung](https://gnusocial.abrain.de/einsatzverwaltung)
6 changes: 2 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Wordpress-Plugin zur Verwaltung und Darstellung von Einsatzberichten der Feuerwehr und anderer Hilfsorganisationen",
"homepage": "https://einsatzverwaltung.abrain.de",
"type": "wordpress-plugin",
"license": "GPL-2.0+",
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "Andreas Brain",
Expand All @@ -20,7 +20,5 @@
"docs": "https://einsatzverwaltung.abrain.de/dokumentation/"
},
"require-dev": {
"codeclimate/php-test-reporter": "dev-master",
"phpunit/phpunit": "5.7.*"
}
}
}
5 changes: 2 additions & 3 deletions phpmd.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<?xml version="1.0"?>
<ruleset name="PHPMD rule set for Einsatzverwaltung"
xmlns="http:https://pmd.sf.net/ruleset/1.0.0"
xmlns="http:https://pmd.sourceforge.net/ruleset/2.0.0"
xmlns:xsi="http:https://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http:https://pmd.sf.net/ruleset/1.0.0 http:https://pmd.sf.net/ruleset_xml_schema.xsd"
xsi:noNamespaceSchemaLocation=" http:https://pmd.sf.net/ruleset_xml_schema.xsd">
xsi:schemaLocation="http:https://pmd.sourceforge.net/ruleset/2.0.0 https://pmd.sourceforge.io/ruleset_2_0_0.xsd">
<description> PHPMD-Regeln für das WordPress-Plugin Einsatzverwaltung </description>

<rule ref="rulesets/unusedcode.xml" />
Expand Down
13 changes: 13 additions & 0 deletions phpunit-checks.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<phpunit
backupGlobals="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
>
<testsuites>
<testsuite>
<file>tests/FileCheck.php</file>
</testsuite>
</testsuites>
</phpunit>
34 changes: 17 additions & 17 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
<phpunit
bootstrap="tests/bootstrap.php"
backupGlobals="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
>
<testsuites>
<testsuite>
<directory suffix="Test.php">./tests/</directory>
</testsuite>
</testsuites>
bootstrap="tests/bootstrap.php"
backupGlobals="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
>
<testsuites>
<testsuite>
<directory suffix="Test.php">./tests/</directory>
</testsuite>
</testsuites>

<filter>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src</directory>
<exclude>
<file>./tests/bootstrap.php</file>
</exclude>
</whitelist>
</filter>
</filter>

<logging>
<log type="coverage-clover" target="build/logs/clover.xml"/>
</logging>
<logging>
<log type="coverage-clover" target="build/logs/clover.xml"/>
</logging>
</phpunit>
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.