Skip to content

Commit

Permalink
Merge pull request #281 from docksal/feature/composer-allow-plugins
Browse files Browse the repository at this point in the history
Set composer global allow-plugins
  • Loading branch information
lmakarov authored Apr 7, 2022
2 parents 1cbe1e3 + 1f6d819 commit 922fd5e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion 7.4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,9 @@ RUN set -e; \
# Reload updated PATH from profile to make composer/drush/etc. visible below
. $HOME/.profile; \
# Drupal Coder & WP Coding Standards w/ a matching version of PHP_CodeSniffer
composer global require drupal/coder wp-coding-standards/wpcs phpcompatibility/phpcompatibility-wp >/dev/null; \
# Set allow-plugins. See https://getcomposer.org/allow-plugins
composer global config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true; \
composer global require drupal/coder wp-coding-standards/wpcs phpcompatibility/phpcompatibility-wp; \
# Don't fix the indentation or installed_paths will not be set correctly
phpcs --config-set installed_paths \
$HOME/.composer/vendor/drupal/coder/coder_sniffer/,\
Expand Down
4 changes: 3 additions & 1 deletion 8.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,9 @@ RUN set -e; \
# Reload updated PATH from profile to make composer/drush/etc. visible below
. $HOME/.profile; \
# Drupal Coder & WP Coding Standards w/ a matching version of PHP_CodeSniffer
composer global require drupal/coder wp-coding-standards/wpcs phpcompatibility/phpcompatibility-wp >/dev/null; \
# Set allow-plugins. See https://getcomposer.org/allow-plugins
composer global config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true; \
composer global require drupal/coder wp-coding-standards/wpcs phpcompatibility/phpcompatibility-wp; \
# Don't fix the indentation or installed_paths will not be set correctly
phpcs --config-set installed_paths \
$HOME/.composer/vendor/drupal/coder/coder_sniffer/,\
Expand Down
4 changes: 3 additions & 1 deletion 8.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,9 @@ RUN set -e; \
# Reload updated PATH from profile to make composer/drush/etc. visible below
. $HOME/.profile; \
# Drupal Coder & WP Coding Standards w/ a matching version of PHP_CodeSniffer
composer global require drupal/coder wp-coding-standards/wpcs phpcompatibility/phpcompatibility-wp >/dev/null; \
# Set allow-plugins. See https://getcomposer.org/allow-plugins
composer global config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true; \
composer global require drupal/coder wp-coding-standards/wpcs phpcompatibility/phpcompatibility-wp; \
# Don't fix the indentation or installed_paths will not be set correctly
phpcs --config-set installed_paths \
$HOME/.composer/vendor/drupal/coder/coder_sniffer/,\
Expand Down

0 comments on commit 922fd5e

Please sign in to comment.