summaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
blob: 51291b86b221cb32ac43fb1d4096736fc0a8eed8 (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
---
# 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: ericsson-pod2
  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:
    - ericsson-pod2
  stage: deploy_platform
  script:
    - bash deploy.sh

k8s_quick:
  tags:
    - ericsson-pod2-docker
  stage: functest-kubernetes-healthcheck
  image: opnfv/functest-kubernetes-healthcheck:jerma
  script:
    - run_tests -t k8s_quick -p -r

k8s_smoke:
  tags:
    - ericsson-pod2-docker
  stage: functest-kubernetes-healthcheck
  image: opnfv/functest-kubernetes-healthcheck:jerma
  script:
    - run_tests -t k8s_smoke -p -r

xrally_kubernetes:
  only:
    - schedules
  tags:
    - ericsson-pod2-docker
  stage: functest-kubernetes-smoke
  image: opnfv/functest-kubernetes-smoke:jerma
  timeout: 3 hours 30 minutes
  script:
    - run_tests -t xrally_kubernetes -p -r

k8s_conformance:
  only:
    - schedules
  tags:
    - ericsson-pod2-docker
  stage: functest-kubernetes-smoke
  image: opnfv/functest-kubernetes-smoke:jerma
  timeout: 3 hours 30 minutes
  script:
    - run_tests -t k8s_conformance -p -r

kube_hunter:
  only:
    - schedules
  tags:
    - ericsson-pod2-docker
  stage: functest-kubernetes-security
  image: opnfv/functest-kubernetes-security:jerma
  script:
    - run_tests -t kube_hunter -p -r

kube_bench_master:
  only:
    - schedules
  tags:
    - ericsson-pod2-docker
  stage: functest-kubernetes-security
  image: opnfv/functest-kubernetes-security:jerma
  script:
    - run_tests -t kube_bench_master -p -r

kube_bench_node:
  only:
    - schedules
  tags:
    - ericsson-pod2-docker
  stage: functest-kubernetes-security
  image: opnfv/functest-kubernetes-security:jerma
  script:
    - run_tests -t kube_bench_node -p -r

xrally_kubernetes_full:
  only:
    - schedules
  tags:
    - ericsson-pod2-docker
  stage: functest-kubernetes-benchmarking
  image: opnfv/functest-kubernetes-benchmarking:jerma
  script:
    - run_tests -t xrally_kubernetes_full -p -r

k8s_vims:
  only:
    - schedules
  tags:
    - ericsson-pod2-docker
  stage: functest-kubernetes-cnf
  image: opnfv/functest-kubernetes-cnf:jerma
  script:
    - run_tests -t k8s_vims -p -r

helm_vims:
  only:
    - schedules
  tags:
    - ericsson-pod2-docker
  stage: functest-kubernetes-cnf
  image: opnfv/functest-kubernetes-cnf:jerma
  script:
    - run_tests -t helm_vims -p -r

cnf_conformance:
  only:
    - schedules
  tags:
    - ericsson-pod2-docker
  stage: functest-kubernetes-cnf
  image: opnfv/functest-kubernetes-cnf:jerma
  script:
    - run_tests -t cnf_conformance -p -r

zip:
  only:
    - schedules
  tags:
    - ericsson-pod2-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:jerma
  script:
    - zip_campaign