Skip to content

Updating dependencies, drone setup and adding phan setup #58

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

Merged
merged 1 commit into from
Mar 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 6 additions & 11 deletions .drone.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ local composer(phpversion, params) = {
local phpunit(phpversion) = {
name: "PHPUnit",
image: "joomlaprojects/docker-images:php" + phpversion,
[if phpversion == "8.2" then "failure"]: "ignore",
[if phpversion == "8.3" then "failure"]: "ignore",
commands: ["vendor/bin/phpunit"]
};

Expand All @@ -51,8 +51,7 @@ local pipeline(name, phpversion, params) = {
volumes: volumes,
commands: [
"php -v",
"composer update",
"composer require phpmd/phpmd phpstan/phpstan"
"composer update"
]
},
{
Expand All @@ -64,16 +63,12 @@ local pipeline(name, phpversion, params) = {
]
},
{
name: "phpmd",
image: "joomlaprojects/docker-images:php8.1",
name: "phan",
image: "joomlaprojects/docker-images:php8.1-ast",
depends: [ "composer" ],
failure: "ignore",
commands: [
"vendor/bin/phpmd src text cleancode",
"vendor/bin/phpmd src text codesize",
"vendor/bin/phpmd src text controversial",
"vendor/bin/phpmd src text design",
"vendor/bin/phpmd src text unusedcode",
"vendor/bin/phan"
]
},
{
Expand Down Expand Up @@ -107,5 +102,5 @@ local pipeline(name, phpversion, params) = {
},
pipeline("8.1 lowest", "8.1", "--prefer-stable --prefer-lowest"),
pipeline("8.1", "8.1", "--prefer-stable"),
pipeline("8.2", "8.2", "--prefer-stable --ignore-platform-reqs"),
pipeline("8.2", "8.2", "--prefer-stable"),
]
301 changes: 107 additions & 194 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -1,202 +1,115 @@
---
{
"kind": "pipeline",
"name": "Codequality",
"steps": [
{
"commands": [
"php -v",
"composer update",
"composer require phpmd/phpmd phpstan/phpstan"
],
"image": "joomlaprojects/docker-images:php8.1",
"name": "composer",
"volumes": [
{
"name": "composer-cache",
"path": "/tmp/composer-cache"
}
]
},
{
"commands": [
"vendor/bin/phpcs --standard=ruleset.xml src/"
],
"depends": [
"composer"
],
"image": "joomlaprojects/docker-images:php8.1",
"name": "phpcs"
},
{
"commands": [
"vendor/bin/phpmd src text cleancode",
"vendor/bin/phpmd src text codesize",
"vendor/bin/phpmd src text controversial",
"vendor/bin/phpmd src text design",
"vendor/bin/phpmd src text unusedcode"
],
"depends": [
"composer"
],
"failure": "ignore",
"image": "joomlaprojects/docker-images:php8.1",
"name": "phpmd"
},
{
"commands": [
"vendor/bin/phpstan analyse src"
],
"depends": [
"composer"
],
"failure": "ignore",
"image": "joomlaprojects/docker-images:php8.1",
"name": "phpstan"
},
{
"commands": [
"phploc src"
],
"depends": [
"composer"
],
"failure": "ignore",
"image": "joomlaprojects/docker-images:php8.1",
"name": "phploc"
},
{
"commands": [
"phpcpd src"
],
"depends": [
"composer"
],
"failure": "ignore",
"image": "joomlaprojects/docker-images:php8.1",
"name": "phpcpd"
}
],
"volumes": [
{
"host": {
"path": "/tmp/composer-cache"
},
"name": "composer-cache"
}
]
}
kind: pipeline
name: Codequality
steps:
- commands:
- php -v
- composer update
image: joomlaprojects/docker-images:php8.1
name: composer
volumes:
- name: composer-cache
path: /tmp/composer-cache
- commands:
- vendor/bin/phpcs --standard=ruleset.xml src/
depends:
- composer
image: joomlaprojects/docker-images:php8.1
name: phpcs
- commands:
- vendor/bin/phan
depends:
- composer
failure: ignore
image: joomlaprojects/docker-images:php8.1-ast
name: phan
- commands:
- vendor/bin/phpstan analyse src
depends:
- composer
failure: ignore
image: joomlaprojects/docker-images:php8.1
name: phpstan
- commands:
- phploc src
depends:
- composer
failure: ignore
image: joomlaprojects/docker-images:php8.1
name: phploc
- commands:
- phpcpd src
depends:
- composer
failure: ignore
image: joomlaprojects/docker-images:php8.1
name: phpcpd
volumes:
- host:
path: /tmp/composer-cache
name: composer-cache
---
{
"kind": "pipeline",
"name": "PHP 8.1 lowest",
"steps": [
{
"commands": [
"php -v",
"composer update --prefer-stable --prefer-lowest"
],
"image": "joomlaprojects/docker-images:php8.1",
"name": "composer",
"volumes": [
{
"name": "composer-cache",
"path": "/tmp/composer-cache"
}
]
},
{
"commands": [
"vendor/bin/phpunit"
],
"image": "joomlaprojects/docker-images:php8.1",
"name": "PHPUnit"
}
],
"volumes": [
{
"host": {
"path": "/tmp/composer-cache"
},
"name": "composer-cache"
}
]
}
kind: pipeline
name: PHP 8.1 lowest
steps:
- commands:
- php -v
- composer update --prefer-stable --prefer-lowest
image: joomlaprojects/docker-images:php8.1
name: composer
volumes:
- name: composer-cache
path: /tmp/composer-cache
- commands:
- vendor/bin/phpunit
image: joomlaprojects/docker-images:php8.1
name: PHPUnit
volumes:
- host:
path: /tmp/composer-cache
name: composer-cache
---
{
"kind": "pipeline",
"name": "PHP 8.1",
"steps": [
{
"commands": [
"php -v",
"composer update --prefer-stable"
],
"image": "joomlaprojects/docker-images:php8.1",
"name": "composer",
"volumes": [
{
"name": "composer-cache",
"path": "/tmp/composer-cache"
}
]
},
{
"commands": [
"vendor/bin/phpunit"
],
"image": "joomlaprojects/docker-images:php8.1",
"name": "PHPUnit"
}
],
"volumes": [
{
"host": {
"path": "/tmp/composer-cache"
},
"name": "composer-cache"
}
]
}
kind: pipeline
name: PHP 8.1
steps:
- commands:
- php -v
- composer update --prefer-stable
image: joomlaprojects/docker-images:php8.1
name: composer
volumes:
- name: composer-cache
path: /tmp/composer-cache
- commands:
- vendor/bin/phpunit
image: joomlaprojects/docker-images:php8.1
name: PHPUnit
volumes:
- host:
path: /tmp/composer-cache
name: composer-cache
---
{
"kind": "pipeline",
"name": "PHP 8.2",
"steps": [
{
"commands": [
"php -v",
"composer update --prefer-stable --ignore-platform-reqs"
],
"image": "joomlaprojects/docker-images:php8.2",
"name": "composer",
"volumes": [
{
"name": "composer-cache",
"path": "/tmp/composer-cache"
}
]
},
{
"commands": [
"vendor/bin/phpunit"
],
"failure": "ignore",
"image": "joomlaprojects/docker-images:php8.2",
"name": "PHPUnit"
}
],
"volumes": [
{
"host": {
"path": "/tmp/composer-cache"
},
"name": "composer-cache"
}
]
}
kind: pipeline
name: PHP 8.2
steps:
- commands:
- php -v
- composer update --prefer-stable
image: joomlaprojects/docker-images:php8.2
name: composer
volumes:
- name: composer-cache
path: /tmp/composer-cache
- commands:
- vendor/bin/phpunit
image: joomlaprojects/docker-images:php8.2
name: PHPUnit
volumes:
- host:
path: /tmp/composer-cache
name: composer-cache
---
kind: signature
hmac: 76b430f45f715002fd687d4ae23425ab479d656bdc36645198e302b6052f070f
hmac: 5e5d25d380c8471aa6a55d802339463ba763c8b2337c8810984e93a0c2f6b6e4

...
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy