-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml-06
77 lines (63 loc) · 1.06 KB
/
.gitlab-ci.yml-06
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
stages:
- build
- test
- deploy
include:
- template: Auto-DevOps.gitlab-ci.yml
module-a-build:
stage: build
script:
- echo "hello3a"
- sleep 5
module-b-build:
stage: build
script:
- echo "hello3b"
- sleep 10
module-c-build:
stage: build
script:
- echo "hello3c"
- sleep 15
module-a-test:
stage: test
script:
- echo "hello3a"
- sleep 10
needs:
- job: "module-a-build"
artifacts: true
module-b-test:
stage: test
script:
- echo "hello3b"
- sleep 10
needs:
- job: "module-b-build"
artifacts: true
module-c-test:
stage: test
script:
- echo "hello3c"
- sleep 10
needs:
- job: "module-c-build"
artifacts: true
module-a-deploy:
stage: deploy
script:
- echo "hello3c"
- sleep 10
needs: ["module-a-test"]
module-b-deploy:
stage: deploy
script:
- echo "hello3c"
- sleep 10
needs: ["module-b-test"]
module-c-deploy:
stage: deploy
script:
- echo "hello3c"
- sleep 10
needs: ["module-c-test"]