Skip to content

Commit

Permalink
Use non-interactive for composer in CI (#5018)
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman committed Jan 14, 2022
1 parent e862418 commit 77cb2ef
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 18 deletions.
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

0 comments on commit 77cb2ef

Please sign in to comment.