Skip to content

Commit

Permalink
Merge branch 'release/1.11.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
abrain committed Feb 11, 2024
2 parents be896ed + e896cbc commit d10c86c
Show file tree
Hide file tree
Showing 112 changed files with 1,936 additions and 10,512 deletions.
1 change: 0 additions & 1 deletion .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ plugins:
enabled: true
exclude_patterns:
- src/font-awesome/
- src/backcompat.php
- .idea/
- tests/
- vendor/
78 changes: 53 additions & 25 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ steps:
commands:
- composer install
- name: check-php-compatibility
image: php:7.4-cli-bullseye
image: php:8.3.2-cli-bullseye
commands:
- ./vendor/bin/phpcs

---
kind: pipeline
type: docker
name: unit-tests
name: tests

trigger:
event:
Expand All @@ -45,13 +45,21 @@ trigger:
depends_on:
- compliance

services:
- name: database
image: mariadb:10.11.6
pull: always
environment:
MARIADB_ROOT_PASSWORD: wptestroot
TZ: Europe/Berlin

steps:
- name: install
image: composer
commands:
- composer install
- name: test
image: php:7.4-cli-bullseye
- name: unit-tests
image: php:8.3.2-cli-bullseye
environment:
CC_TEST_REPORTER_ID:
from_secret: cc_test_reporter_id
Expand All @@ -63,18 +71,46 @@ steps:
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
- XDEBUG_MODE=coverage ./vendor/bin/phpunit -c phpunit.xml
- name: integration-tests-latest
image: php:8.3.2-cli-bullseye
environment:
CC_TEST_REPORTER_ID:
from_secret: cc_test_reporter_id
commands:
- apt-get update && apt-get install -y git subversion mariadb-client
- pecl install xdebug
- docker-php-ext-enable xdebug
- docker-php-ext-install mysqli
- ./bin/install-wp-tests.sh wptest_latest root wptestroot database
- XDEBUG_MODE=coverage ./vendor/bin/phpunit -c phpunit-integration.xml
- ./bin/report-code-coverage.sh
- name: slack
image: plugins/slack
settings:
webhook:
from_secret: slack_hook
when:
status:
- failure
event:
exclude:
- pull_request
- name: downgrade-phpunit
image: composer
commands:
- composer require --dev --update-with-all-dependencies --ignore-platform-req=php "phpunit/phpunit:^7.5" "mockery/mockery:1.3.6" "sebastian/comparator:^3.0"
- name: integration-tests-minimum
image: php:7.4.33-cli-bullseye
commands:
- apt-get update && apt-get install -y subversion mariadb-client
- docker-php-ext-install mysqli
- ./bin/install-wp-tests.sh wptest_min root wptestroot database 5.6
- ./vendor/bin/phpunit -c phpunit-integration.xml --no-coverage
- name: codecov
image: alpine
environment:
CODECOV_TOKEN:
from_secret: codecov_token
commands:
- apk add curl gnupg coreutils git
- curl https://uploader.codecov.io/verification.gpg | gpg --no-default-keyring --keyring /root/trustedkeys.gpg --import
- curl -Os https://uploader.codecov.io/latest/alpine/codecov
- curl -Os https://uploader.codecov.io/latest/alpine/codecov.SHA256SUM
- curl -Os https://uploader.codecov.io/latest/alpine/codecov.SHA256SUM.sig
- gpgv --keyring /root/trustedkeys.gpg codecov.SHA256SUM.sig codecov.SHA256SUM
- sha256sum -c codecov.SHA256SUM
- chmod +x codecov
- ./codecov --file build/logs/clover.xml --flags unit
- ./codecov --file build/logs/clover-integration.xml --flags integration

---
kind: pipeline
Expand All @@ -86,23 +122,15 @@ steps:
image: alpine
commands:
- ./bin/check-version-tags.sh
- name: slack
image: plugins/slack
settings:
webhook:
from_secret: slack_hook
when:
status:
- failure

depends_on:
- unit-tests
- tests

trigger:
event:
- tag
---
kind: signature
hmac: 8c29bef07eebae363c6e40220f4ab9adda9ecc095d300b8b8e481c9fd38333d6
hmac: d78c019b7979426052d6dd969d216ca58b878dfac6836531e5cf1d5f9cf381f2

...
27 changes: 1 addition & 26 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,29 +1,4 @@
# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/dataSources.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml
.idea/deployment.xml
.idea/webServers.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# File-based project format
*.iws

.idea/
build
setupLocalTest.sh
vendor
Expand Down
8 changes: 0 additions & 8 deletions .idea/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion .idea/.name

This file was deleted.

88 changes: 0 additions & 88 deletions .idea/Einsatzverwaltung.iml

This file was deleted.

4 changes: 0 additions & 4 deletions .idea/blade.xml

This file was deleted.

34 changes: 0 additions & 34 deletions .idea/codeStyleSettings.xml

This file was deleted.

27 changes: 0 additions & 27 deletions .idea/codeStyles/Project.xml

This file was deleted.

5 changes: 0 additions & 5 deletions .idea/codeStyles/codeStyleConfig.xml

This file was deleted.

3 changes: 0 additions & 3 deletions .idea/copyright/profiles_settings.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/encodings.xml

This file was deleted.

10 changes: 0 additions & 10 deletions .idea/fileTemplates/PHPUnit Test WP.php

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/fileTemplates/internal/PHP Class.php

This file was deleted.

Loading

0 comments on commit d10c86c

Please sign in to comment.