39 lines
537 B
YAML
39 lines
537 B
YAML
stages:
|
|
- prepare
|
|
- build
|
|
- test
|
|
- update
|
|
- deploy
|
|
|
|
composer_update:
|
|
stage: update
|
|
image: composer:latest
|
|
script:
|
|
- composer update
|
|
artifacts:
|
|
paths:
|
|
- vendor/
|
|
cache:
|
|
key: ${CI_COMMIT_REF_SLUG}
|
|
paths:
|
|
- vendor/
|
|
|
|
prepare:
|
|
stage: prepare
|
|
script:
|
|
- echo "Preparing environment..."
|
|
|
|
build:
|
|
stage: build
|
|
script:
|
|
- echo "Building the project..."
|
|
|
|
test:
|
|
stage: test
|
|
script:
|
|
- echo "Running tests..."
|
|
|
|
deploy:
|
|
stage: deploy
|
|
script:
|
|
- echo "Deploying the project..." |