Skip to content

Commit

Permalink
Merge pull request #139 from php-enqueue/ingore-extension-in-config
Browse files Browse the repository at this point in the history
[composer] Add extensions to platform config.
  • Loading branch information
makasim committed Jul 27, 2017
2 parents 1fbe55d + 9093e12 commit bf1fc84
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Expand Up @@ -40,13 +40,13 @@ install:
- rm $HOME/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini;
- echo "memory_limit=2048M" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- composer require symfony/symfony:${SYMFONY_VERSION} --no-update
- composer install --ignore-platform-reqs # ext-amqp is not installed
- composer install
- if [ "$FUNCTIONAL_TESTS" = true ]; then docker --version; fi
- if [ "$FUNCTIONAL_TESTS" = true ]; then docker-compose --version; fi
- if [ "$FUNCTIONAL_TESTS" = true ]; then bin/dev -b; fi

script:
- 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
- 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
- if [ "$PHP_CS_FIXER" = true ]; then IFS=$'\n'; COMMIT_SCA_FILES=($(git diff --name-only --diff-filter=ACMRTUXB "${TRAVIS_COMMIT_RANGE}")); unset IFS; fi
- 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
- if [ "$UNIT_TESTS" = true ]; then bin/phpunit --exclude-group=functional; fi
Expand Down
10 changes: 7 additions & 3 deletions composer.json
Expand Up @@ -35,8 +35,7 @@
"symfony/event-dispatcher": "^2.8|^3",
"symfony/console": "^2.8|^3",
"friendsofphp/php-cs-fixer": "^2",
"empi89/php-amqp-stubs": "*@dev",
"phpstan/phpstan": "^0.7.0"
"empi89/php-amqp-stubs": "*@dev"
},
"autoload": {
"files": [
Expand All @@ -51,7 +50,12 @@
}
},
"config": {
"bin-dir": "bin"
"bin-dir": "bin",
"platform": {
"ext-amqp": "1.7",
"ext-gearman": "1.1",
"ext-rdkafka": "3.3"
}
},
"repositories": [
{
Expand Down

0 comments on commit bf1fc84

Please sign in to comment.