Skip to content
Snippets Groups Projects
Verified Commit bc7c140e authored by Björn Brala's avatar Björn Brala
Browse files

Mongodb install throough pecl, yay for 8.3 :(

parent 4a265c2d
No related branches found
No related tags found
No related merge requests found
...@@ -107,6 +107,9 @@ default: ...@@ -107,6 +107,9 @@ default:
rules: rules:
- if: $PERFORMANCE_TEST != "1" - if: $PERFORMANCE_TEST != "1"
.mongodb-install: &mongodb-install |-
apt update && apt install autoconf file g++ gcc make pkg-config re2c --yes && docker-php-ext-pecl-install mongodb
################ ################
# Stages # Stages
...@@ -285,7 +288,7 @@ default: ...@@ -285,7 +288,7 @@ default:
paths: paths:
- vendor/ - vendor/
script: script:
- docker-php-ext-pecl-install mongodb - *mongodb-install
- composer validate - composer validate
- composer install - composer install
- if [ -n "$COMPOSER_UPDATE" ]; then - if [ -n "$COMPOSER_UPDATE" ]; then
......
...@@ -44,7 +44,7 @@ variables: ...@@ -44,7 +44,7 @@ variables:
[[ $_TARGET_DB == mariadb* ]] && export SIMPLETEST_DB=mysql://$MYSQL_USER:$MYSQL_PASSWORD@database/$MYSQL_DATABASE?module=mysql [[ $_TARGET_DB == mariadb* ]] && export SIMPLETEST_DB=mysql://$MYSQL_USER:$MYSQL_PASSWORD@database/$MYSQL_DATABASE?module=mysql
[[ $_TARGET_DB == pgsql* ]] && export SIMPLETEST_DB=pgsql://$POSTGRES_USER:$POSTGRES_PASSWORD@database/$POSTGRES_DB?module=pgsql [[ $_TARGET_DB == pgsql* ]] && export SIMPLETEST_DB=pgsql://$POSTGRES_USER:$POSTGRES_PASSWORD@database/$POSTGRES_DB?module=pgsql
- echo -e "\e[0Ksection_start:`date +%s`:my_first_section[collapsed=true]\r\e[0KInstall PHP Extension" - echo -e "\e[0Ksection_start:`date +%s`:my_first_section[collapsed=true]\r\e[0KInstall PHP Extension"
- pecl install mongodb && docker-php-ext-enable mongodb - *mongodb-install
- echo -e "\e[0Ksection_end:`date +%s`:my_first_section\r\e[0K" - echo -e "\e[0Ksection_end:`date +%s`:my_first_section\r\e[0K"
- $CI_PROJECT_DIR/.gitlab-ci/scripts/server-setup.sh - $CI_PROJECT_DIR/.gitlab-ci/scripts/server-setup.sh
script: script:
......
...@@ -27,7 +27,7 @@ default: ...@@ -27,7 +27,7 @@ default:
[[ $_TARGET_DB == pgsql* ]] && export SIMPLETEST_DB=pgsql://$POSTGRES_USER:$POSTGRES_PASSWORD@database/$POSTGRES_DB?module=pgsql [[ $_TARGET_DB == pgsql* ]] && export SIMPLETEST_DB=pgsql://$POSTGRES_USER:$POSTGRES_PASSWORD@database/$POSTGRES_DB?module=pgsql
- echo "SIMPLETEST_DB = $SIMPLETEST_DB" - echo "SIMPLETEST_DB = $SIMPLETEST_DB"
- echo -e "\e[0Ksection_start:`date +%s`:my_first_section[collapsed=true]\r\e[0KInstall PHP Extension" - echo -e "\e[0Ksection_start:`date +%s`:my_first_section[collapsed=true]\r\e[0KInstall PHP Extension"
- pecl install mongodb && docker-php-ext-enable mongodb - *mongodb-install
- echo -e "\e[0Ksection_end:`date +%s`:my_first_section\r\e[0K" - echo -e "\e[0Ksection_end:`date +%s`:my_first_section\r\e[0K"
- $CI_PROJECT_DIR/.gitlab-ci/scripts/server-setup.sh - $CI_PROJECT_DIR/.gitlab-ci/scripts/server-setup.sh
after_script: after_script:
...@@ -67,7 +67,6 @@ variables: ...@@ -67,7 +67,6 @@ variables:
MYSQL_DATABASE: mysql MYSQL_DATABASE: mysql
MYSQL_USER: drupaltestbot MYSQL_USER: drupaltestbot
MYSQL_PASSWORD: drupaltestbotpw MYSQL_PASSWORD: drupaltestbotpw
COMPOSER_EXTRA: --ignore-platform-req=ext-mongodb
POSTGRES_DB: drupaltestbot POSTGRES_DB: drupaltestbot
POSTGRES_USER: drupaltestbot POSTGRES_USER: drupaltestbot
POSTGRES_PASSWORD: drupaltestbotpw POSTGRES_PASSWORD: drupaltestbotpw
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment