Skip to content

Commit b4a766e

Browse files
authored
Merge pull request #139 from php-enqueue/ingore-extension-in-config
[composer] Add extensions to platform config.
2 parents 783edd1 + dccd58b commit b4a766e

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

‎.travis.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ install:
4040
- rm $HOME/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini;
4141
- echo "memory_limit=2048M" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
4242
- composer require symfony/symfony:${SYMFONY_VERSION} --no-update
43-
- composer install --ignore-platform-reqs # ext-amqp is not installed
43+
- composer install
4444
- if [ "$FUNCTIONAL_TESTS" = true ]; then docker --version; fi
4545
- if [ "$FUNCTIONAL_TESTS" = true ]; then docker-compose --version; fi
4646
- if [ "$FUNCTIONAL_TESTS" = true ]; then bin/dev -b; fi
4747

4848
script:
49-
- if [ "$PHPSTAN" = true ]; then php -d memory_limit=512M bin/phpstan analyse -l 1 -c phpstan.neon pkg/amqp-ext pkg/async-event-dispatcher pkg/dbal pkg/enqueue pkg/enqueue-bundle pkg/fs pkg/gearman pkg/job-queue pkg/null pkg/pheanstalk pkg/redis pkg/simple-client pkg/sqs pkg/stomp pkg/test pkg/rdkafka; fi
49+
- if [ "$PHPSTAN" = true ]; then composer require "phpstan/phpstan:0.7.0" ; php -d memory_limit=512M bin/phpstan analyse -l 1 -c phpstan.neon pkg/amqp-ext pkg/async-event-dispatcher pkg/dbal pkg/enqueue pkg/enqueue-bundle pkg/fs pkg/gearman pkg/job-queue pkg/null pkg/pheanstalk pkg/redis pkg/simple-client pkg/sqs pkg/stomp pkg/test pkg/rdkafka; fi
5050
- if [ "$PHP_CS_FIXER" = true ]; then IFS=$'\n'; COMMIT_SCA_FILES=($(git diff --name-only --diff-filter=ACMRTUXB "${TRAVIS_COMMIT_RANGE}")); unset IFS; fi
5151
- if [ "$PHP_CS_FIXER" = true ]; then ./bin/php-cs-fixer fix --config=.php_cs.dist -v --dry-run --stop-on-violation --using-cache=no --path-mode=intersection -- "${COMMIT_SCA_FILES[@]}"; fi
5252
- if [ "$UNIT_TESTS" = true ]; then bin/phpunit --exclude-group=functional; fi

‎composer.json‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@
3535
"symfony/event-dispatcher": "^2.8|^3",
3636
"symfony/console": "^2.8|^3",
3737
"friendsofphp/php-cs-fixer": "^2",
38-
"empi89/php-amqp-stubs": "*@dev",
39-
"phpstan/phpstan": "^0.7.0"
38+
"empi89/php-amqp-stubs": "*@dev"
4039
},
4140
"autoload": {
4241
"files": [
@@ -51,7 +50,12 @@
5150
}
5251
},
5352
"config": {
54-
"bin-dir": "bin"
53+
"bin-dir": "bin",
54+
"platform": {
55+
"ext-amqp": "1.7",
56+
"ext-gearman": "1.1",
57+
"ext-rdkafka": "3.3"
58+
}
5559
},
5660
"repositories": [
5761
{

0 commit comments

Comments
 (0)