Skip to content

Commit 143bcf9

Browse files
committed
fix(tests): Enable more PHP modules in phpunit-32bits
Also add output when enabling applications, and watch phpunit configuration file for changes. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent bed6737 commit 143bcf9

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/phpunit-32bits.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
paths:
88
- 'version.php'
99
- '.github/workflows/phpunit-32bits.yml'
10+
- 'tests/phpunit-autotest.xml'
1011
workflow_dispatch:
1112
schedule:
1213
- cron: "15 1 * * 1-6"
@@ -47,19 +48,21 @@ jobs:
4748
uses: shivammathur/setup-php@cf4cade2721270509d5b1c766ab3549210a39a2a #v2.33.0
4849
with:
4950
php-version: ${{ matrix.php-versions }}
50-
extensions: ctype, curl, dom, fileinfo, gd, imagick, intl, json, mbstring, openssl, pdo_sqlite, posix, sqlite, xml, zip, apcu
51+
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, imagick, intl, json, libxml, mbstring, openssl, pcntl, posix, redis, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite, apcu, ldap
5152
coverage: none
5253
ini-file: development
5354
ini-values:
5455
apc.enabled=on, apc.enable_cli=on, disable_functions= # https://github.com/shivammathur/setup-php/discussions/573
5556
env:
5657
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5758

59+
- name: Set up dependencies
60+
run: composer i
61+
5862
- name: Set up Nextcloud
5963
env:
6064
DB_PORT: 4444
6165
run: |
62-
composer install
6366
mkdir data
6467
./occ maintenance:install --verbose --database=sqlite --database-name=nextcloud --database-host=127.0.0.1 --database-port=$DB_PORT --database-user=autotest --database-pass=rootpassword --admin-user admin --admin-pass admin
6568
php -f tests/enable_all.php | grep -i -C9999 error && echo "Error during app setup" && exit 1 || exit 0

tests/enable_all.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* SPDX-FileCopyrightText: 2016-2018 Nextcloud GmbH and Nextcloud contributors
3+
* SPDX-FileCopyrightText: 2016-2025 Nextcloud GmbH and Nextcloud contributors
44
* SPDX-FileCopyrightText: 2012-2016 ownCloud, Inc.
55
* SPDX-License-Identifier: AGPL-3.0-or-later
66
*/
@@ -10,6 +10,7 @@
1010
function enableApp($app) {
1111
try {
1212
(new \OC_App())->enable($app);
13+
echo "Enabled application {$app}\n";
1314
} catch (Exception $e) {
1415
echo $e;
1516
}

0 commit comments

Comments
 (0)