Skip to content

Commit d12cf91

Browse files
Added workaround so deployer and its dependencies are loaded from phar
Signed-off-by: Bastian Schwarz <bastian@codename-php.de>
1 parent 3126530 commit d12cf91

9 files changed

Lines changed: 75427 additions & 73010 deletions

File tree

.idea/deployer.base.iml

Lines changed: 0 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/php.xml

Lines changed: 1 addition & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deployer.phar

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
vendor/deployer/deployer/dep

phive.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
~ limitations under the License.
1616
-->
1717
<phive xmlns="https://phar.io/phive">
18-
<phar name="phpunit" version="^9.5" installed="9.5.13" location="./tools/phpunit.phar" copy="true"/>
19-
<phar name="psalm" version="^4.20" installed="4.20.0" location="./tools/psalm" copy="true"/>
18+
<phar name="phpunit" version="^9.5" installed="9.5.21" location="./tools/phpunit.phar" copy="true"/>
19+
<phar name="psalm" version="^4.20" installed="4.25.0" location="./tools/psalm" copy="true"/>
2020
<phar name="composer-unused" version="^0.7" installed="0.7.12" location="./tools/composer-unused" copy="true"/>
2121
<phar name="composer-require-checker" version="^2.1.0" installed="2.1.0" location="./tools/composer-require-checker" copy="true"/>
22-
<phar name="infection" version="^0.26" installed="0.26.4" location="./tools/infection" copy="true"/>
22+
<phar name="infection" version="^0.26" installed="0.26.13" location="./tools/infection" copy="true"/>
2323
<phar name="php-cs-fixer" version="^2.19" installed="2.19.3" location="./tools/php-cs-fixer" copy="true"/>
2424
</phive>

test/bootstrap.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php declare(strict_types=1);
2+
/*
3+
* Copyright 2022 Bastian Schwarz <bastian@codename-php.de>.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
18+
require_once __DIR__ . '/../vendor/autoload.php';
19+
20+
Phar::loadPhar(__DIR__ . '/../deployer.phar');
21+
require_once 'phar://deployer.phar/vendor/autoload.php';

test/phpunit.dist.xml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!--~
3-
~ Copyright 2020 Bastian Schwarz <bastian@codename-php.de>.
2+
<!--
3+
~ Copyright 2022 Bastian Schwarz <bastian@codename-php.de>.
44
~
5-
~ Licensed under the Apache License, Version 2.0 (the "License");
6-
~ you may not use this file except in compliance with the License.
7-
~ You may obtain a copy of the License at
5+
~ Licensed under the Apache License, Version 2.0 (the "License");
6+
~ you may not use this file except in compliance with the License.
7+
~ You may obtain a copy of the License at
88
~
9-
~ http://www.apache.org/licenses/LICENSE-2.0
10-
~
11-
~ Unless required by applicable law or agreed to in writing, software
12-
~ distributed under the License is distributed on an "AS IS" BASIS,
13-
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14-
~ See the License for the specific language governing permissions and
15-
~ limitations under the License.
9+
~ http://www.apache.org/licenses/LICENSE-2.0
1610
~
11+
~ Unless required by applicable law or agreed to in writing, software
12+
~ distributed under the License is distributed on an "AS IS" BASIS,
13+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
~ See the License for the specific language governing permissions and
15+
~ limitations under the License.
1716
-->
18-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" colors="true" bootstrap="./../vendor/autoload.php"
19-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
17+
<phpunit
18+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
20+
colors="true"
21+
bootstrap="./bootstrap.php"
22+
>
2023
<coverage>
2124
<include>
2225
<directory suffix=".php">./../src</directory>

tools/infection

-4.71 KB
Binary file not shown.

0 commit comments

Comments
 (0)