mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-10 07:16:16 +01:00
tea/.gitlab-ci.yml
Łukasz Uznański 0c972ed7f6
[TASK] Add base gitlab ci composer build (#80)
Co-authored-by: Łukasz Uznański <l.uznanski@macopedia.pl>
2020-07-24 11:53:07 +02:00

25 lines
469 B
YAML

---
stages:
- build
default:
image: php:7.4
before_script:
- bash .gitlab/build/docker_install.sh > /dev/null
build-composer-dependencies:
stage: build
variables:
COMPOSER_CACHE_DIR: '.composer'
script:
- 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
- .Build