Page MenuHomeDevCentral

D2808.id7344.diff
No OneTemporary

D2808.id7344.diff

diff --git a/map.jinja b/map.jinja
--- a/map.jinja
+++ b/map.jinja
@@ -124,7 +124,6 @@
'node': 'nodejs',
'pear': 'php-pear',
'phpcs': 'php-codesniffer',
- 'phpunit': 'phpunit',
'postgresql': 'postgresql-15',
'sphinx': 'python3-sphinx',
'tcl': 'tcl8.6-dev',
@@ -189,7 +188,6 @@
'node': 'node',
'pear': 'pear',
'phpcs': 'pear-PHP_CodeSniffer',
- 'phpunit': 'phpunit9-php81',
'postgresql': 'postgresql15-server',
'postgresql-contrib': 'postgresql15-contrib',
'sphinx': 'py36-sphinx',
diff --git a/roles/devserver/userland-software/dev.sls b/roles/devserver/userland-software/dev.sls
--- a/roles/devserver/userland-software/dev.sls
+++ b/roles/devserver/userland-software/dev.sls
@@ -77,7 +77,6 @@
devserver_software_dev_php:
pkg.installed:
- pkgs:
- - {{ packages.phpunit }}
- {{ packages_prefixes.pecl }}ast
- {{ packages_prefixes.pecl }}xdebug
@@ -103,12 +102,22 @@
- source_hash: 3d59778ec86faf25fd00e3a329b2f9ad4a3c751ca91601ea7dab70f887b0bf46
- mode: 755
+phpunit:
+ cmd.run:
+ - name: |
+ curl --silent https://sebastian-bergmann.de/gpg.asc | gpg --import
+ wget -O /opt/phpunit.phar https://phar.phpunit.de/phpunit-10.phar
+ wget -O /opt/phpunit.phar.asc https://phar.phpunit.de/phpunit-10.phar.asc
+ cd /opt && gpg --verify ./phpunit.phar.asc
+ rm /opt/phpunit.phar.asc
+ - creates: /opt/phpunit.phar
+
{{ dirs.bin }}/run-php-script:
file.managed:
- source: salt://roles/devserver/userland-software/files/run-php-script.sh
- mode: 755
-{% for command in ["phan", "phpcpd", "phpdox", "phploc", "phpmd", "phpstan", "psalm", "rector"] %}
+{% for command in ["phan", "phpcpd", "phpdox", "phploc", "phpmd", "phpstan", "phpunit", "psalm", "rector"] %}
{{ dirs.bin }}/{{ command }}:
file.managed:
- source: salt://roles/devserver/userland-software/files/run-php-script-alias.sh.jinja

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 19, 08:35 (20 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2252066
Default Alt Text
D2808.id7344.diff (1 KB)

Event Timeline