Skip to content

Commit

Permalink
Add apcu and ffmpeg to have less skipped tests
Browse files Browse the repository at this point in the history
Also exclude test groups which rely on a service

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
  • Loading branch information
come-nc committed Jan 20, 2023
1 parent dd4c4fe commit 36990e3
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/phpunit-32bits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,21 @@ jobs:
with:
submodules: true

- name: Install tools
run: |
sudo apt-get update
sudo apt-get install -y ffmpeg imagemagick libmagickcore-6.q16-3-extra
- name: Set up php ${{ matrix.php-versions }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: ctype, curl, dom, fileinfo, gd, imagick, intl, json, mbstring, oci8, openssl, pdo_sqlite, posix, sqlite, xml, zip, apcu
extensions: ctype, curl, dom, fileinfo, gd, imagick, intl, json, mbstring, openssl, pdo_sqlite, posix, sqlite, xml, zip, apcu
tools: phpunit:9
coverage: none
ini-values:
apc.enabled=on,
apc.enable_cli=on
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -44,4 +52,4 @@ jobs:
- name: PHPUnit
working-directory: tests
run: phpunit --configuration phpunit-autotest.xml
run: phpunit --configuration phpunit-autotest.xml --exclude-group PRIMARY-azure,PRIMARY-s3,PRIMARY-swift,Memcached,Redis
4 changes: 4 additions & 0 deletions tests/lib/Memcache/APCuTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@

namespace Test\Memcache;

/**
* @group Memcache
* @group APCu
*/
class APCuTest extends Cache {
protected function setUp(): void {
parent::setUp();
Expand Down
3 changes: 3 additions & 0 deletions tests/lib/Memcache/ArrayCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@

namespace Test\Memcache;

/**
* @group Memcache
*/
class ArrayCacheTest extends Cache {
protected function setUp(): void {
parent::setUp();
Expand Down
3 changes: 3 additions & 0 deletions tests/lib/Memcache/CasTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@

use Test\TestCase;

/**
* @group Memcache
*/
class CasTraitTest extends TestCase {
/**
* @return \OC\Memcache\CasTrait
Expand Down
3 changes: 3 additions & 0 deletions tests/lib/Memcache/FactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ public static function isAvailable(): bool {
}
}

/**
* @group Memcache
*/
class FactoryTest extends \Test\TestCase {
public const AVAILABLE1 = '\\Test\\Memcache\\Test_Factory_Available_Cache1';
public const AVAILABLE2 = '\\Test\\Memcache\\Test_Factory_Available_Cache2';
Expand Down
4 changes: 4 additions & 0 deletions tests/lib/Memcache/MemcachedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@

namespace Test\Memcache;

/**
* @group Memcache
* @group Memcached
*/
class MemcachedTest extends Cache {
public static function setUpBeforeClass(): void {
parent::setUpBeforeClass();
Expand Down
4 changes: 4 additions & 0 deletions tests/lib/Memcache/RedisTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@

namespace Test\Memcache;

/**
* @group Memcache
* @group Redis
*/
class RedisTest extends Cache {
public static function setUpBeforeClass(): void {
parent::setUpBeforeClass();
Expand Down

0 comments on commit 36990e3

Please sign in to comment.