S
S
Steve2021-02-23 16:24:50
Continuous Integration
Steve, 2021-02-23 16:24:50

Gitlab CI locally. Mistake?

I have a project and I want to do CI in GitLab, but when I try to run unit tests locally , I get an gitlab-runner exec docker testerror:

Show error text
Problem 1
- Root composer.json requires PHP extension ext-gd * but it is missing from your system. Install or enable PHP's gd extension.екст ошибки">Problem 1
- Root composer.json requires PHP extension ext-gd * but it is missing from your system. Install or enable PHP's gd extension.
Problem 2
- phpoffice/phpspreadsheet is locked to version 1.9.0 and an update of this package was not requested.
- phpoffice/phpspreadsheet 1.9.0 requires ext-gd * -> it is missing from your system. Install or enable PHP's gd extension.
Problem 3
- pomm-project/cli is locked to version 2.0.2 and an update of this package was not requested.
- pomm-project/cli 2.0.2 requires ext-pgsql * -> it is missing from your system. Install or enable PHP's pgsql extension.
Problem 4
- pomm-project/foundation is locked to version 2.0.3 and an update of this package was not requested.
- pomm-project/foundation 2.0.3 requires ext-pgsql * -> it is missing from your system. Install or enable PHP's pgsql extension.
Problem 5
- pomm-project/model-manager is locked to version 2.0.2 and an update of this package was not requested.
- pomm-project/model-manager 2.0.2 requires ext-pgsql * -> it is missing from your system. Install or enable PHP's pgsql extension.
Problem 6
- symfony/flex is locked to version v1.4.6 and an update of this package was not requested.
- symfony/flex v1.4.6 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
Problem 7
- pomm-project/cli 2.0.2 requires ext-pgsql * -> it is missing from your system. Install or enable PHP's pgsql extension.
- pomm-project/pomm-bundle 2.4.2 requires pomm-project/cli ~2.0 -> satisfiable by pomm-project/cli[2.0.2].
- pomm-project/pomm-bundle is locked to version 2.4.2 and an update of this package was not requested.

To enable extensions, verify that they are enabled in your .ini files:
-
- /usr/local/etc/php/conf.d/docker-php-ext-exif.ini
- /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.


.gitlab-ci.yml:
#
# https://gitlab.com/gitlab-org/gitlab/tree/master/lib/gitlab/ci/templates/PHP.gitlab-ci.yml
#
image: php:7.2

# Cache libraries in between jobs
cache:
  key: ${CI_COMMIT_REF_SLUG}
  paths:
    - vendor/

before_script:
  - docker-php-ext-install exif
  # Install and run Composer
  - curl --show-error --silent "https://getcomposer.org/installer" | php
  - php composer.phar install

test:
  script:
    - vendor/bin/phpunit --configuration phpunit.xml.dist --coverage-text --colors=never


Я включал в php.ini невключ. параметры, потом перезагружал апачь, чистил кеш, обновил композер но ничего не помогло.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2021-02-23
@CenterJoin

What do you not understand about the sentence "Install or enable PHP's gd extension"? You already have exif installed, add the rest of the extensions by analogy.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question