Skip to content

Commit ee4133d

Browse files
committed
chore: move behat dependencies to vendor-bin
So we do not have 3 locatations to look for PHP dependencies. Signed-off-by: Ferdinand Thiessen <[email protected]>
1 parent 71c2e94 commit ee4133d

Some content is hidden

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

45 files changed

+92
-555
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ updates:
6969
target-branch: stable32
7070
directories:
7171
- "/"
72-
- "/build/integration"
72+
- "/vendor-bin/behat"
7373
- "/vendor-bin/cs-fixer"
7474
- "/vendor-bin/openapi-extractor"
7575
- "/vendor-bin/phpunit"

.github/workflows/integration-s3-primary.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ jobs:
9090
9191
- name: Set up Nextcloud
9292
run: |
93+
composer install
9394
mkdir data
9495
echo '<?php $CONFIG=["${{ matrix.key }}" => ["class" => "OC\Files\ObjectStore\S3", "arguments" => ["bucket" => "nextcloud", "autocreate" => true, "key" => "nextcloud", "secret" => "bWluaW8tc2VjcmV0LWtleS1uZXh0Y2xvdWQ=", "hostname" => "localhost", "port" => 9000, "use_ssl" => false, "use_path_style" => true, "uploadPartSize" => 52428800]]];' > config/config.php
9596
echo '<?php $CONFIG=["redis" => ["host" => "localhost", "port" => 6379], "memcache.local" => "\OC\Memcache\Redis", "memcache.distributed" => "\OC\Memcache\Redis"];' > config/redis.config.php

.github/workflows/integration-sqlite.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,9 @@ jobs:
131131
env:
132132
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
133133

134-
- name: Set up production dependencies
135-
run: composer i --no-dev
136-
137-
- name: Set up behat dependencies
138-
working-directory: build/integration
139-
run: composer i
134+
- name: Set up dependencies
135+
run: |
136+
composer install
140137
141138
- name: Set up Talk dependencies
142139
if: ${{ matrix.test-suite == 'videoverification_features' }}

REUSE.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ SPDX-FileCopyrightText = "2025 Nextcloud GmbH and Nextcloud contributors"
256256
SPDX-License-Identifier = "AGPL-3.0-or-later"
257257

258258
[[annotations]]
259-
path = ["composer.json", "composer.lock", ".github/CODEOWNERS", "__tests__/tsconfig.json", "tsconfig.json", "build/integration/composer.**", "vendor-bin/**/composer.json", "vendor-bin/**/composer.lock", "apps/**/composer/composer.json", "apps/**/composer/composer.lock", "apps/**/composer/composer/installed.json"]
259+
path = ["composer.json", "composer.lock", ".github/CODEOWNERS", "__tests__/tsconfig.json", "tsconfig.json", "apps/**/composer/composer.json", "apps/**/composer/composer.lock", "apps/**/composer/composer/installed.json"]
260260
precedence = "aggregate"
261261
SPDX-FileCopyrightText = "2011-2016 ownCloud, Inc., 2016-2024 Nextcloud GmbH and Nextcloud contributors"
262262
SPDX-License-Identifier = "AGPL-3.0-only OR AGPL-3.0-or-later"

autotest-external.sh

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ADMINLOGIN=admin$EXECUTOR_NUMBER
1212
BASEDIR=$PWD
1313

1414
DBCONFIGS="sqlite mysql pgsql oci"
15-
PHPUNIT=$(which phpunit)
15+
PHPUNIT="$PWD/lib/composer/bin/phpunit"
1616

1717
_XDEBUG_CONFIG=$XDEBUG_CONFIG
1818
unset XDEBUG_CONFIG
@@ -28,13 +28,8 @@ function print_syntax {
2828
}
2929

3030
if ! [ -x "$PHPUNIT" ]; then
31-
echo "phpunit executable not found, trying local one from build/integration" >&2
32-
if [ -x "$PWD/build/integration/vendor/phpunit/phpunit/phpunit" ]; then
33-
PHPUNIT="$PWD/build/integration/vendor/phpunit/phpunit/phpunit"
34-
else
35-
echo "phpunit executable not found, please install phpunit version >= 9.0" >&2
36-
exit 3
37-
fi
31+
echo "phpunit executable not found, please run 'composer install' in the root directory first." >&2
32+
exit 3
3833
fi
3934

4035
PHPUNIT_VERSION=$("$PHPUNIT" --version | cut -d" " -f2)

build/integration/composer.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

build/integration/features/bootstrap/AppConfiguration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use PHPUnit\Framework\Assert;
1111
use Psr\Http\Message\ResponseInterface;
1212

13-
require __DIR__ . '/../../vendor/autoload.php';
13+
require __DIR__ . '/autoload.php';
1414

1515
trait AppConfiguration {
1616
/** @var string */

build/integration/features/bootstrap/Auth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use GuzzleHttp\Exception\ClientException;
1111
use GuzzleHttp\Exception\ServerException;
1212

13-
require __DIR__ . '/../../vendor/autoload.php';
13+
require __DIR__ . '/autoload.php';
1414

1515
trait Auth {
1616
/** @var string */

build/integration/features/bootstrap/Avatar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77
use PHPUnit\Framework\Assert;
88

9-
require __DIR__ . '/../../vendor/autoload.php';
9+
require __DIR__ . '/autoload.php';
1010

1111
trait Avatar {
1212
/** @var string * */

build/integration/features/bootstrap/BasicStructure.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use PHPUnit\Framework\Assert;
1414
use Psr\Http\Message\ResponseInterface;
1515

16-
require __DIR__ . '/../../vendor/autoload.php';
16+
require __DIR__ . '/autoload.php';
1717

1818
trait BasicStructure {
1919
use Auth;

0 commit comments

Comments
 (0)