From cd3b47ab1ac497695459bbb07e0e09e8ca0952b6 Mon Sep 17 00:00:00 2001 From: Martin Maina Kiragu Date: Mon, 13 Feb 2023 02:26:31 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5f4d607c..3f67361a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,10 +8,8 @@ before_script: - apt-get install -yqq #install php depandancies -- docker-php-ext-install mysqli mbstring pdo pdo_mysql curl json intl gd xml zip bz2 opcache pcntl tidy +- docker-php-ext-install mbstring xml -# Enable php extensions -- docker-php-ext-enable pdo_mysql tidy # Install composer package manager - curl --location --output /usr/local/bin/composer https://getcomposer.org/download/latest-stable/composer.phar - chmod +x /usr/local/bin/composer @@ -19,12 +17,8 @@ before_script: #jobs build_job: stage: build - image: php:7.4 script: - - apt-get update && apt-get install -y unzip - - apt-get install -y php-xml - - curl -sS https://getcomposer.org/installer | php - - composer.phar install --ignore-platform-reqs + - composer install --ignore-platform-reqs rules: - if: '$CI_COMMIT_BRANCH =~ /.*/'