-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
61 lines (51 loc) · 1002 Bytes
/
.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
image: rust:1.81.0-slim-bookworm
include:
- project: "procivis/one/one-operations"
file:
- "gitlab/ci-tools.gitlab-ci.yml"
variables:
GITHUB_PROJECT: "procivis/one-dto-mapper-rs"
GITHUB_TAG_PATTERN: /^v[0-9]+\.[0-9]+\.[0-9]+$/
.only_tag:
rules:
- if: $CI_COMMIT_TAG
.only_manual_tag:
rules:
- if: $CI_COMMIT_TAG
when: manual
stages:
- test
- linter
- github
- publish
- sync_with_jira
tests:
stage: test
script:
- cargo test --all-targets
linter:clippy:
stage: linter
script:
- rustup component add clippy
- cargo clippy --lib --tests -- -D warnings
github:push:
stage: github
extends:
- .ci-tool:open_source_release
publish:
stage: publish
needs: []
parallel:
matrix:
- PROJECT:
- one-dto-mapper-derive
- one-dto-mapper
script:
- cd $PROJECT
- cargo publish
extends:
- .only_manual_tag
set_jira_version:
stage: sync_with_jira
extends:
- .ci-tool:set_jira_version