-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
86 lines (76 loc) · 1.29 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
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
78
79
80
81
82
83
84
85
86
image: alpine
stages:
- commit
- aat-preprod
- uat-preprod
- nfr-tests
- create-rfc
- deploy-to-prod
- close-rfc
commit:
only:
- master
stage: commit
script:
- echo "Running build..."
- echo "Running unit tests"
- echo "Publishing to artifactory"
aat-preprod:
only:
- master
stage: aat-preprod
script:
- echo "Deploying to preprod..."
- echo "Running AAT..."
uat-preprod:
only:
- master
stage: uat-preprod
script:
- echo "Running UAT..."
when: manual
performance-test:
only:
- master
stage: nfr-tests
script:
- echo "Deploying to preprod..."
- echo "Running load tests..."
capacity-test:
only:
- master
stage: nfr-tests
script:
- echo "Deploying to preprod..."
- echo "Running load tests..."
security-scan:
only:
- master
stage: nfr-tests
script:
- echo "Deploying to preprod..."
- echo "Running security scan..."
rfc-create:
only:
- master
stage: create-rfc
script:
- echo "Waiting for RFC to be created..."
allow_failure: false
when: manual
deploy-to-prod:
only:
- master
stage: deploy-to-prod
dependencies:
- rfc-create
script:
- echo "Deploy to prod..."
- echo "Run smoke test..."
- echo "Send slack notification"
close-rfc:
only:
- master
stage: close-rfc
script:
- echo "Closing RFC..."