Skip to content

Commit 84889b6

Browse files
authored
Merge pull request #537 from nextcloud/6.2.0-prep
Chores in preparation of next release
2 parents 9ad88e6 + 96d43a9 commit 84889b6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+7447
-3093
lines changed

.github/workflows/scanner.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
ICAP_REQUEST: avscan
9191
ICAP_HEADER: X-Infection-Found
9292
ICAP_MODE: reqmod
93-
run: ./vendor/phpunit/phpunit/phpunit -c tests/phpunit.xml tests/Scanner/ICAPTest.php
93+
run: ./vendor-bin/phpunit/vendor/phpunit/phpunit/phpunit -c tests/phpunit.xml tests/Scanner/ICAPTest.php
9494
- name: PHPUnit respmod
9595
working-directory: apps/${{ env.APP_NAME }}
9696
env:
@@ -100,7 +100,7 @@ jobs:
100100
ICAP_REQUEST: avscan
101101
ICAP_HEADER: X-Infection-Found
102102
ICAP_MODE: respmod
103-
run: ./vendor/phpunit/phpunit/phpunit -c tests/phpunit.xml tests/Scanner/ICAPTest.php
103+
run: ./vendor-bin/phpunit/vendor/phpunit/phpunit/phpunit -c tests/phpunit.xml tests/Scanner/ICAPTest.php
104104

105105
icap-kaspersky:
106106
runs-on: ubuntu-latest
@@ -164,7 +164,7 @@ jobs:
164164
ICAP_REQUEST: req
165165
ICAP_HEADER: X-Virus-ID
166166
ICAP_MODE: reqmod
167-
run: ./vendor/phpunit/phpunit/phpunit -c tests/phpunit.xml tests/Scanner/ICAPTest.php
167+
run: ./vendor-bin/phpunit/vendor/phpunit/phpunit/phpunit -c tests/phpunit.xml tests/Scanner/ICAPTest.php
168168

169169
kaspersky:
170170
runs-on: ubuntu-latest
@@ -225,7 +225,7 @@ jobs:
225225
env:
226226
KASPERSKY_HOST: localhost
227227
KASPERSKY_PORT: 1234
228-
run: ./vendor/phpunit/phpunit/phpunit -c tests/phpunit.xml tests/Scanner/ExternalKasperskyTest.php
228+
run: ./vendor-bin/phpunit/vendor/phpunit/phpunit/phpunit -c tests/phpunit.xml tests/Scanner/ExternalKasperskyTest.php
229229

230230
summary:
231231
permissions:

.php-cs-fixer.dist.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
66
* SPDX-License-Identifier: AGPL-3.0-or-later
77
*/
8-
require_once './vendor/autoload.php';
8+
require_once './vendor-bin/cs-fixer/vendor/autoload.php';
99

1010
use Nextcloud\CodingStandard\Config;
1111

@@ -14,8 +14,8 @@
1414
->getFinder()
1515
->ignoreVCSIgnored(true)
1616
->notPath('build')
17+
->notPath('tests/stubs')
1718
->notPath('l10n')
18-
->notPath('lib/Vendor')
1919
->notPath('src')
2020
->notPath('vendor')
2121
->in(__DIR__);

REUSE.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ SPDX-FileCopyrightText = "2013-2016 ownCloud Inc., 2016-2024 Nextcloud GmbH and
1212
SPDX-License-Identifier = "AGPL-3.0-or-later"
1313

1414
[[annotations]]
15-
path = [".envrc", "Cargo.lock", "composer.json", "composer.lock", "tests/stub.phpstub"]
15+
path = [".envrc", "Cargo.lock", "composer.*", "vendor-bin/*/composer.*", "tests/stub.phpstub"]
1616
precedence = "aggregate"
1717
SPDX-FileCopyrightText = "2021 Nextcloud GmbH and Nextcloud contributors"
1818
SPDX-License-Identifier = "AGPL-3.0-or-later"

composer.json

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,34 @@
11
{
22
"config": {
3+
"allow-plugins": {
4+
"bamarni/composer-bin-plugin": true
5+
},
36
"platform": {
4-
"php": "8.1"
7+
"php": "8.2"
58
}
69
},
10+
"require": {
11+
"bamarni/composer-bin-plugin": "^1.9"
12+
},
713
"require-dev": {
814
"nextcloud/ocp": "dev-master",
915
"doctrine/dbal": "3.1.4",
10-
"phpunit/phpunit": "^9",
11-
"psalm/phar": "^5.26",
1216
"icewind/streams": "v0.7.5",
1317
"sabre/dav": "^4.2.1",
14-
"nextcloud/coding-standard": "^v1.1.1",
1518
"symfony/event-dispatcher": "4.4.30",
1619
"psr/clock": "^1.0"
1720
},
1821
"scripts": {
19-
"lint": "find . -name \\*.php -not -path './vendor/*' -not -path './build/*' -not -path './tests/integration/vendor/*' -print0 | xargs -0 -n1 php -l",
22+
"post-install-cmd": [
23+
"@composer bin all install --ansi"
24+
],
25+
"post-update-cmd": [
26+
"@composer bin all update --ansi"
27+
],
28+
"lint": "find . -name \\*.php -not -path './vendor/*' -not -path './vendor-bin/*' -not -path './build/*' -not -path './tests/integration/vendor/*' -print0 | xargs -0 -n1 php -l",
2029
"cs:check": "php-cs-fixer fix --dry-run --diff",
2130
"cs:fix": "php-cs-fixer fix",
22-
"psalm": "psalm.phar",
31+
"psalm": "psalm",
2332
"test:unit": "vendor/bin/phpunit -c tests/phpunit.xml"
2433
}
2534
}

0 commit comments

Comments
 (0)