41 lines
698 B
YAML
41 lines
698 B
YAML
image: edbizarro/gitlab-ci-pipeline-php:7.4
|
|
|
|
stages:
|
|
- preparation
|
|
- building
|
|
- syntax
|
|
- testing
|
|
- deploy
|
|
|
|
cache:
|
|
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
|
|
|
|
composer:
|
|
stage: preparation
|
|
script:
|
|
- composer install --prefer-dist --no-ansi --no-interaction --no-progress --no-scripts --no-suggest
|
|
- cp .env.example .env
|
|
- php artisan key:generate
|
|
artifacts:
|
|
paths:
|
|
- vendor/
|
|
- .env
|
|
expire_in: 1 days
|
|
when: always
|
|
cache:
|
|
paths:
|
|
- vendor/
|
|
|
|
yarn:
|
|
stage: preparation
|
|
script:
|
|
- yarn install --pure-lockfile
|
|
artifacts:
|
|
paths:
|
|
- node_modules/
|
|
expire_in: 1 days
|
|
when: always
|
|
cache:
|
|
paths:
|
|
- node_modules/
|