mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-27 00:36:14 +01:00
tea/.gitlab/pipeline/jobs/build-composer-dependencies.yml
Oliver Klee 8204165d9c
[BUGFIX] Do not cache the .Build directory in GitLab CI (#432)
We must not cache this directory. If it is cached, this might cause
Composer to (re-)install dependency version that are not valid for
the current PHP version, which possibly might break the build.
2022-04-14 18:09:32 +02:00

18 lines
390 B
YAML

build-composer-dependencies:
extends: .default
stage: build
needs: [ ]
variables:
COMPOSER_CACHE_DIR: '.composer'
script:
- composer --version
- COMPOSER_CACHE_DIR=.composer
composer install --prefer-dist --no-progress --optimize-autoloader
artifacts:
when: on_success
expire_in: 2 weeks
paths:
- .Build
cache:
paths:
- .composer