Page MenuHomeDevCentral

D2808.id7132.diff
No OneTemporary

D2808.id7132.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,9 +188,9 @@
'node': 'node',
'pear': 'pear',
'phpcs': 'pear-PHP_CodeSniffer',
- 'phpunit': 'phpunit9-php81',
'postgresql': 'postgresql15-server',
'postgresql-contrib': 'postgresql15-contrib',
+ 'postgresql': 'postgresql13-server',
'sphinx': 'py36-sphinx',
'tcl': 'tcl86',
'tcltls': 'tcltls',
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
/opt/phpcpd.phar:
@@ -98,12 +97,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-9.phar
+ wget -O /opt/phpunit.phar.asc https://phar.phpunit.de/phpunit-9.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, 06:27 (17 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2252096
Default Alt Text
D2808.id7132.diff (2 KB)

Event Timeline