Update IDF of Intel Pod 19 based on new IDF structure
[kuberef.git] / .gitlab-ci.yml
1 ---
2 # GitLab CI config file to deploy RI2 on baremetal infra
3 # and run RC2 compliance tests on the deployed platform.
4 # TODO add tox jobs
5
6 variables:
7   S3_ENDPOINT_URL: https://storage.googleapis.com
8   S3_DST_URL: s3://artifacts.opnfv.org/kuberef/${CI_COMMIT_SHORT_SHA}/${CI_JOB_NAME}-${CI_JOB_ID}
9   HTTP_DST_URL: http://artifacts.opnfv.org/kuberef/${CI_COMMIT_SHORT_SHA}/${CI_JOB_NAME}-${CI_JOB_ID}
10   TEST_DB_URL: http://testresults.opnfv.org/test/api/v1/results
11   TEST_DB_EXT_URL: http://testresults.opnfv.org/test/api/v1/results
12   NODE_NAME: ericsson-pod2
13   BUILD_TAG: ${CI_COMMIT_SHORT_SHA}
14   DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
15
16 stages:
17   - .pre
18   - deploy_platform
19   - functest-kubernetes-healthcheck
20   - functest-kubernetes-smoke
21   - functest-kubernetes-security
22   - functest-kubernetes-benchmarking
23   - functest-kubernetes-cnf
24   - zip
25   - .post
26
27 deploy:
28   tags:
29     - ericsson-pod2
30   stage: deploy_platform
31   script:
32     - bash deploy.sh
33
34 k8s_quick:
35   tags:
36     - ericsson-pod2-docker
37   stage: functest-kubernetes-healthcheck
38   image: opnfv/functest-kubernetes-healthcheck:jerma
39   script:
40     - run_tests -t k8s_quick -p -r
41
42 k8s_smoke:
43   tags:
44     - ericsson-pod2-docker
45   stage: functest-kubernetes-healthcheck
46   image: opnfv/functest-kubernetes-healthcheck:jerma
47   script:
48     - run_tests -t k8s_smoke -p -r
49
50 xrally_kubernetes:
51   only:
52     - schedules
53   tags:
54     - ericsson-pod2-docker
55   stage: functest-kubernetes-smoke
56   image: opnfv/functest-kubernetes-smoke:jerma
57   timeout: 3 hours 30 minutes
58   script:
59     - run_tests -t xrally_kubernetes -p -r
60
61 k8s_conformance:
62   only:
63     - schedules
64   tags:
65     - ericsson-pod2-docker
66   stage: functest-kubernetes-smoke
67   image: opnfv/functest-kubernetes-smoke:jerma
68   timeout: 3 hours 30 minutes
69   script:
70     - run_tests -t k8s_conformance -p -r
71
72 kube_hunter:
73   only:
74     - schedules
75   tags:
76     - ericsson-pod2-docker
77   stage: functest-kubernetes-security
78   image: opnfv/functest-kubernetes-security:jerma
79   script:
80     - run_tests -t kube_hunter -p -r
81
82 kube_bench_master:
83   only:
84     - schedules
85   tags:
86     - ericsson-pod2-docker
87   stage: functest-kubernetes-security
88   image: opnfv/functest-kubernetes-security:jerma
89   script:
90     - run_tests -t kube_bench_master -p -r
91
92 kube_bench_node:
93   only:
94     - schedules
95   tags:
96     - ericsson-pod2-docker
97   stage: functest-kubernetes-security
98   image: opnfv/functest-kubernetes-security:jerma
99   script:
100     - run_tests -t kube_bench_node -p -r
101
102 xrally_kubernetes_full:
103   only:
104     - schedules
105   tags:
106     - ericsson-pod2-docker
107   stage: functest-kubernetes-benchmarking
108   image: opnfv/functest-kubernetes-benchmarking:jerma
109   script:
110     - run_tests -t xrally_kubernetes_full -p -r
111
112 k8s_vims:
113   only:
114     - schedules
115   tags:
116     - ericsson-pod2-docker
117   stage: functest-kubernetes-cnf
118   image: opnfv/functest-kubernetes-cnf:jerma
119   script:
120     - run_tests -t k8s_vims -p -r
121
122 helm_vims:
123   only:
124     - schedules
125   tags:
126     - ericsson-pod2-docker
127   stage: functest-kubernetes-cnf
128   image: opnfv/functest-kubernetes-cnf:jerma
129   script:
130     - run_tests -t helm_vims -p -r
131
132 cnf_conformance:
133   only:
134     - schedules
135   tags:
136     - ericsson-pod2-docker
137   stage: functest-kubernetes-cnf
138   image: opnfv/functest-kubernetes-cnf:jerma
139   script:
140     - run_tests -t cnf_conformance -p -r
141
142 zip:
143   only:
144     - schedules
145   tags:
146     - ericsson-pod2-docker
147   stage: zip
148   variables:
149     S3_DST_URL: s3://artifacts.opnfv.org/kuberef/
150     HTTP_DST_URL: http://artifacts.opnfv.org/kuberef/
151   image: opnfv/functest-kubernetes-healthcheck:jerma
152   script:
153     - zip_campaign