Skip to content

Commit 993f6c1

Browse files
committed
RdKafka; Replace composer-modifying for testing with --ignore-platform-req argument
1 parent 40f5c70 commit 993f6c1

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

pkg/rdkafka/.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
php-version: ${{ matrix.php }}
2323
coverage: none
2424

25-
- run: php Tests/fix_composer_json.php
26-
2725
- uses: "ramsey/composer-install@v1"
26+
with: # ext-rdkafka not needed for tests, and a pain to install on CI;
27+
composer-options: "--ignore-platform-req=ext-rdkafka"
2828

2929
- run: vendor/bin/phpunit --exclude-group=functional

pkg/rdkafka/Tests/bootstrap.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@
1212
}
1313
}
1414

15+
// Pretend that a high version was installed, opposed to 0.8.5 from kwn/php-rdkafka-stubs
16+
const RD_KAFKA_VERSION = 42424242;
17+
1518
include_once $kafkaStubsDir.'/stubs/constants.php';
1619
include_once $kafkaStubsDir.'/stubs/functions.php';

pkg/rdkafka/Tests/fix_composer_json.php

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

0 commit comments

Comments
 (0)