Skip to content
Snippets Groups Projects
Commit 36d27ecd authored by Jean Valverde's avatar Jean Valverde :construction_site:
Browse files

fix: prophecy-phpunit for a module

parent 575823c5
No related branches found
No related tags found
No related merge requests found
......@@ -94,11 +94,15 @@ build:
echo -e "\e[0Ksection_end:`date +%s`:dev_install\r\e[0K";
fi
# Added phpspec for Drupal 9.0+, @see https://www.drupal.org/project/drupal/issues/3182653
# @todo: remove when 8.9 is deprecated.
# @todo: remove when 8.9 is deprecated and add as default in ci images.
- |
if [ 1 -eq "$(echo "${CI_DRUPAL_VERSION} >= 9.0" | bc)" ]; then
echo -e "\e[0Ksection_start:`date +%s`:prophecy_install[collapsed=true]\r\e[0K\e[1;34mInstall prophecy-phpunit\e[0m";
echo -e "\e[0Ksection_start:`date +%s`:prophecy_install[collapsed=true]\r\e[0K\e[1;34mInstall prophecy-phpunit for Drupal 9+\e[0m";
if [ ${CI_TYPE} == "project" ] && [ -f composer.json ]; then
composer require --no-ansi -n "phpspec/prophecy-phpunit";
elif [ ${CI_TYPE} == "module" ]; then
composer require --no-ansi -n -d /opt/drupal "phpspec/prophecy-phpunit";
fi
echo -e "\e[0Ksection_end:`date +%s`:prophecy_install\r\e[0K";
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment