Skip to content

Commit 36990e3

Browse files
committed
Add apcu and ffmpeg to have less skipped tests
Also exclude test groups which rely on a service Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent dd4c4fe commit 36990e3

File tree

7 files changed

+31
-2
lines changed

7 files changed

+31
-2
lines changed

.github/workflows/phpunit-32bits.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,21 @@ jobs:
2424
with:
2525
submodules: true
2626

27+
- name: Install tools
28+
run: |
29+
sudo apt-get update
30+
sudo apt-get install -y ffmpeg imagemagick libmagickcore-6.q16-3-extra
31+
2732
- name: Set up php ${{ matrix.php-versions }}
2833
uses: shivammathur/setup-php@v2
2934
with:
3035
php-version: ${{ matrix.php-versions }}
31-
extensions: ctype, curl, dom, fileinfo, gd, imagick, intl, json, mbstring, oci8, openssl, pdo_sqlite, posix, sqlite, xml, zip, apcu
36+
extensions: ctype, curl, dom, fileinfo, gd, imagick, intl, json, mbstring, openssl, pdo_sqlite, posix, sqlite, xml, zip, apcu
3237
tools: phpunit:9
3338
coverage: none
39+
ini-values:
40+
apc.enabled=on,
41+
apc.enable_cli=on
3442
env:
3543
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3644

@@ -44,4 +52,4 @@ jobs:
4452
4553
- name: PHPUnit
4654
working-directory: tests
47-
run: phpunit --configuration phpunit-autotest.xml
55+
run: phpunit --configuration phpunit-autotest.xml --exclude-group PRIMARY-azure,PRIMARY-s3,PRIMARY-swift,Memcached,Redis

tests/lib/Memcache/APCuTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99

1010
namespace Test\Memcache;
1111

12+
/**
13+
* @group Memcache
14+
* @group APCu
15+
*/
1216
class APCuTest extends Cache {
1317
protected function setUp(): void {
1418
parent::setUp();

tests/lib/Memcache/ArrayCacheTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99

1010
namespace Test\Memcache;
1111

12+
/**
13+
* @group Memcache
14+
*/
1215
class ArrayCacheTest extends Cache {
1316
protected function setUp(): void {
1417
parent::setUp();

tests/lib/Memcache/CasTraitTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323

2424
use Test\TestCase;
2525

26+
/**
27+
* @group Memcache
28+
*/
2629
class CasTraitTest extends TestCase {
2730
/**
2831
* @return \OC\Memcache\CasTrait

tests/lib/Memcache/FactoryTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ public static function isAvailable(): bool {
6161
}
6262
}
6363

64+
/**
65+
* @group Memcache
66+
*/
6467
class FactoryTest extends \Test\TestCase {
6568
public const AVAILABLE1 = '\\Test\\Memcache\\Test_Factory_Available_Cache1';
6669
public const AVAILABLE2 = '\\Test\\Memcache\\Test_Factory_Available_Cache2';

tests/lib/Memcache/MemcachedTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99

1010
namespace Test\Memcache;
1111

12+
/**
13+
* @group Memcache
14+
* @group Memcached
15+
*/
1216
class MemcachedTest extends Cache {
1317
public static function setUpBeforeClass(): void {
1418
parent::setUpBeforeClass();

tests/lib/Memcache/RedisTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99

1010
namespace Test\Memcache;
1111

12+
/**
13+
* @group Memcache
14+
* @group Redis
15+
*/
1216
class RedisTest extends Cache {
1317
public static function setUpBeforeClass(): void {
1418
parent::setUpBeforeClass();

0 commit comments

Comments
 (0)