Adding .gitlab-ci.yml for GitLab 94/70894/6
authorRihab Banday <rihab.banday@ericsson.com>
Fri, 28 Aug 2020 10:27:30 +0000 (12:27 +0200)
committerGeorg Kunz <georg.kunz@ericsson.com>
Tue, 29 Sep 2020 15:23:46 +0000 (15:23 +0000)
This patch introduces .gitlab-ci.yml file to
test the e2e deployment and RC2 testcases suite
in GitLab.

Change-Id: If9e39d42a433611e35ced296c60dcb4d2ffbe5a2
Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/70894
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Tested-by: Georg Kunz <georg.kunz@ericsson.com>
Reviewed-by: Victor Morales <chipahuac@hotmail.com>
Reviewed-by: Georg Kunz <georg.kunz@ericsson.com>
.gitlab-ci.yml [new file with mode: 0644]

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644 (file)
index 0000000..e502b35
--- /dev/null
@@ -0,0 +1,23 @@
+# GitLab CI config file to deploy RI2 on baremetal infra
+# and run RC2 compliance tests on the deployed platform.
+# TODO add tox jobs
+
+stages:
+  - deploy_platform
+  - run_compliance_tests
+
+deploy:
+  stage: deploy_platform
+  tags:
+    - ericsson-pod2
+  script:
+    - bash deploy.sh
+
+runtestsuite:
+  extends: deploy
+  stage: run_compliance_tests
+  tags:
+    - ericsson-pod2
+  script:
+    - bash run_testsuite.sh
+  when: on_success