-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
36 lines (33 loc) · 1.06 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_TAG
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
include:
- component: $CI_SERVER_FQDN/composants/dart/format@0.0.10
- component: $CI_SERVER_FQDN/composants/dart/analyze@0.0.10
- component: $CI_SERVER_FQDN/composants/dart/fix@0.0.10
- component: $CI_SERVER_FQDN/composants/dart/test@0.0.10
- component: $CI_SERVER_FQDN/composants/dart/coverage@0.0.10
- component: $CI_SERVER_FQDN/composants/dart/pana@0.0.10
- component: $CI_SERVER_FQDN/composants/dart/doc@0.0.10
stages:
- format
- analyze
- fix
- test
- coverage
- pana
- doc
- release
# If the pipeline is for a new tag with a semantic version, and all previous jobs succeed,
# create the release.
create-release:
stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest
script: echo "Creating release $CI_COMMIT_TAG"
rules:
- if: $CI_COMMIT_TAG
release:
tag_name: $CI_COMMIT_TAG
description: "Release $CI_COMMIT_TAG of components repository $CI_PROJECT_PATH"