Update .gitlab-ci.yml file

This commit is contained in:
Martin Maina Kiragu
2023-02-13 02:26:31 +00:00
parent c5f95cdf61
commit cd3b47ab1a
+2 -8
View File
@@ -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 =~ /.*/'