summaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
blob: 4082b47a9e0286e995d5902ecdd4ad391ab91e7e (plain)
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
---
# GitLab CI config file to deploy RI2 on baremetal infra
# and run RC2 compliance tests on the deployed platform.
# TODO add tox jobs

variables:
  S3_ENDPOINT_URL: https://storage.googleapis.com
  S3_DST_URL: s3://artifacts.opnfv.org/kuberef/${CI_COMMIT_SHORT_SHA}/${CI_JOB_NAME}-${CI_JOB_ID}
  HTTP_DST_URL: http://artifacts.opnfv.org/kuberef/${CI_COMMIT_SHORT_SHA}/${CI_JOB_NAME}-${CI_JOB_ID}
  TEST_DB_URL: http://testresults.opnfv.org/test/api/v1/results
  TEST_DB_EXT_URL: http://testresults.opnfv.org/test/api/v1/results
  NODE_NAME: intel-pod19
  BUILD_TAG: ${CI_COMMIT_SHORT_SHA}
  DEPLOY_SCENARIO: k8-nosdn-nofeature-noha

stages:
  - .pre
  - deploy_platform
  - functest-kubernetes-healthcheck
  - functest-kubernetes-smoke
  - functest-kubernetes-security
  - functest-kubernetes-benchmarking
  - functest-kubernetes-cnf
  - zip
  - .post

deploy:
  tags:
    - intel-pod19-shell
  stage: deploy_platform
  script:
    - bash deploy.sh

k8s_quick:
  tags:
    - intel-pod19-docker
  stage: functest-kubernetes-healthcheck
  image: opnfv/functest-kubernetes-healthcheck:v1.18
  script:
    - run_tests -t k8s_quick -p -r

k8s_smoke:
  tags:
    - intel-pod19-docker
  stage: functest-kubernetes-healthcheck
  image: opnfv/functest-kubernetes-healthcheck:v1.18
  script:
    - run_tests -t k8s_smoke -p -r

xrally_kubernetes:
  only:
    - schedules
  tags:
    - intel-pod19-docker
  stage: functest-kubernetes-smoke
  image: opnfv/functest-kubernetes-smoke:v1.18
  script:
    - run_tests -t xrally_kubernetes -p -r

k8s_conformance:
  only:
    - schedules
  tags:
    - intel-pod19-docker
  stage: functest-kubernetes-smoke
  image: opnfv/functest-kubernetes-smoke:v1.18
  timeout: 3 hours 30 minutes
  script:
    - run_tests -t k8s_conformance -p -r

sig_network:
  only:
    - schedules
  tags:
    - intel-pod19-docker
  stage: functest-kubernetes-smoke
  image: opnfv/functest-kubernetes-smoke:v1.18
  script:
    - run_tests -t sig_network -p -r

sig_network_features:
  only:
    - schedules
  tags:
    - intel-pod19-docker
  stage: functest-kubernetes-smoke
  image: opnfv/functest-kubernetes-smoke:v1.18
  script:
    - run_tests -t sig_network_features -p -r

sig_storage:
  only:
    - schedules
  tags:
    - intel-pod19-docker
  stage: functest-kubernetes-smoke
  image: opnfv/functest-kubernetes-smoke:v1.18
  script:
    - run_tests -t sig_storage -p -r

kube_hunter:
  only:
    - schedules
  tags:
    - intel-pod19-docker
  stage: functest-kubernetes-security
  image: opnfv/functest-kubernetes-security:v1.18
  script:
    - run_tests -t kube_hunter -p -r

kube_bench_master:
  only:
    - schedules
  tags:
    - intel-pod19-docker
  stage: functest-kubernetes-security
  image: opnfv/functest-kubernetes-security:v1.18
  script:
    - run_tests -t kube_bench_master -p -r

kube_bench_node:
  only:
    - schedules
  tags:
    - intel-pod19-docker
  stage: functest-kubernetes-security
  image: opnfv/functest-kubernetes-security:v1.18
  script:
    - run_tests -t kube_bench_node -p -r

xrally_kubernetes_full:
  only:
    - schedules
  tags:
    - intel-pod19-docker
  stage: functest-kubernetes-benchmarking
  image: opnfv/functest-kubernetes-benchmarking:v1.18
  script:
    - run_tests -t xrally_kubernetes_full -p -r

k8s_vims:
  only:
    - schedules
  tags:
    - intel-pod19-docker
  stage: functest-kubernetes-cnf
  image: opnfv/functest-kubernetes-cnf:v1.18
  script:
    - run_tests -t k8s_vims -p -r

helm_vims:
  only:
    - schedules
  tags:
    - intel-pod19-docker
  stage: functest-kubernetes-cnf
  image: opnfv/functest-kubernetes-cnf:v1.18
  script:
    - run_tests -t helm_vims -p -r

cnf_conformance:
  only:
    - schedules
  tags:
    - intel-pod19-docker
  stage: functest-kubernetes-cnf
  image: opnfv/functest-kubernetes-cnf:v1.18
  script:
    - run_tests -t cnf_conformance -p -r

zip:
  only:
    - schedules
  tags:
    - intel-pod19-docker
  stage: zip
  variables:
    S3_DST_URL: s3://artifacts.opnfv.org/kuberef/
    HTTP_DST_URL: http://artifacts.opnfv.org/kuberef/
  image: opnfv/functest-kubernetes-healthcheck:v1.18
  script:
    - zip_campaign