Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use non-interactive for composer in CI #5018

Merged
merged 6 commits into from
Jan 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
36 changes: 18 additions & 18 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ test_74_steps: &test74steps
steps:
- checkout
- run: cp .docker/zz-php.ini /usr/local/etc/php/conf.d/
- run: composer install -n
- run: composer -n install
- run: mkdir -p /tmp/results
- run: composer lint
- run: composer unit -- --log-junit /tmp/results/unit.junit.xml
- run: composer functional -- --log-junit /tmp/results/functional.junit.xml
- run: composer -n lint
- run: composer -n unit -- --log-junit /tmp/results/unit.junit.xml
- run: composer -n functional -- --log-junit /tmp/results/functional.junit.xml
# @todo was getting missing key_value table failure when this comes before functional. See https://circleci.com/gh/drush-ops/drush/8828.
- run: composer integration -- --log-junit /tmp/results/integration.junit.xml
- run: composer -n integration -- --log-junit /tmp/results/integration.junit.xml
- store_test_results:
path: /tmp/results
- store_artifacts:
Expand All @@ -42,8 +42,8 @@ jobs:
steps:
- checkout
- run: cp .docker/zz-php.ini /usr/local/etc/php/conf.d/
- run: composer install -n
- run: composer cs
- run: composer -n install
- run: composer -n cs

# Mergeable test:
# FAIL if merging test branch with 11.x produces conflicts
Expand Down Expand Up @@ -101,11 +101,11 @@ jobs:
steps:
- checkout
- run: cp .docker/zz-php.ini /usr/local/etc/php/conf.d/
- run: composer require --dev drupal/core-recommended:9.2.8 --no-update
- run: composer require symfony/polyfill-php80:"1.23 as 1.20" --no-update
- run: composer -n require --dev drupal/core-recommended:9.2.8 --no-update
- run: composer -n require symfony/polyfill-php80:"1.23 as 1.20" --no-update
- run: php --version
- run: composer update
- run: composer phpunit -- --testsuite integration --filter=testInsecureDrupalPackage --stop-on-skipped
- run: composer -n update
- run: composer -n phpunit -- --testsuite integration --filter=testInsecureDrupalPackage --stop-on-skipped

# PHP 8 test with Drupal tip
# Determines whether a newer version of a dependency has broken Drush.
Expand All @@ -121,14 +121,14 @@ jobs:
- checkout
- run: cp .docker/zz-php.ini /usr/local/etc/php/conf.d/
- run: php --version
- run: composer config platform.php --unset
- run: composer require --dev drupal/core-recommended:9.4.x-dev --no-update
- run: composer update
- run: composer -n config platform.php --unset
- run: composer -n require --dev drupal/core-recommended:9.4.x-dev --no-update
- run: composer -n update
- run: mkdir -p /tmp/results
- run: composer lint
- run: composer unit -- --log-junit /tmp/results/unit.junit.xml
- run: composer functional -- --log-junit /tmp/results/functional.junit.xml
- run: composer integration -- --log-junit /tmp/results/integration.junit.xml
- run: composer -n lint
- run: composer -n unit -- --log-junit /tmp/results/unit.junit.xml
- run: composer -n functional -- --log-junit /tmp/results/functional.junit.xml
- run: composer -n integration -- --log-junit /tmp/results/integration.junit.xml
- store_test_results:
path: /tmp/results
- store_artifacts:
Expand Down
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@
"files": ["tests/load.environment.php"]
},
"config": {
"allow-plugins": {
"composer/installers": true
},
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true,
Expand Down