Files
tverd-plus-tokenizer/gitflic-ci.yaml
2026-01-02 23:19:40 +03:00

53 lines
1.4 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Данный файл - шаблонная конфигурация CI/CD конвейера. Он может быть изменен по Вашему усмотрению.
# Некоторые шаблоны требуют предварительной настройки перед запуском.
#
# Подробнее о синтаксисе можно узнать в документации:
# https://docs.gitflic.ru/cicd/gitflic-ci-yaml
image: ubuntu:latest
variables:
TEST_1_SUCCESS: "true"
TEST_2_SUCCESS: "true"
before_script:
- echo "Скрипт до основных инструкций (в каждой задаче)"
stages:
- test
- build
- deploy
build:
stage: build
script:
- echo "Сборка проекта"
- echo "Собранный проект" > build.txt
artifacts:
paths: build.txt
test1:
stage: test
script:
- echo "Первый набор тестов"
- echo $TEST_1_SUCCESS
test2:
stage: test
script:
- echo "Второй набор тестов"
- echo $TEST_2_SUCCESS
deploy:
stage: deploy
script:
- echo $(cat build.txt)
- echo "Развертывание проекта"
needs:
- build
rules:
- if: $TEST_1_SUCCESS == "true" && $TEST_2_SUCCESS == "true"
after_script:
- echo "Скрипт после основных инструкций (в каждой задаче)"