From b8be6164f39e754eb2fd9e9056ff725cd049d959 Mon Sep 17 00:00:00 2001
From: lintao <lintao51@gmail.com>
Date: Wed, 13 Mar 2024 15:11:59 +0800
Subject: [PATCH] Prepare for the GitLab CI

---
 .gitlab-ci.yml | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 00000000..a0fd076f
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,36 @@
+##############################################################################
+# CI for CEPCSW at IHEP GitLab
+##############################################################################
+
+stages:
+  - build
+  # - test
+
+##############################################################################
+# Build Template
+##############################################################################
+.build_template:
+  stage: build
+  variables:
+    LCG_RELEASE:
+    CEPCSW_BLDTOOL: ninja
+  script:
+    - bash ./.build.ci.sh
+
+
+##############################################################################
+# Build CentOS 7 (LCG)
+##############################################################################
+build:lcg:el7:
+  extends: .build_template
+  variables:
+    LCG_RELEASE: LCG
+
+##############################################################################
+# Build CentOS 7 (KEY4HEP)
+##############################################################################
+build:k4:el7:
+  extends: .build_template
+  variables:
+    LCG_RELEASE: KEY4HEP_STACK
+
-- 
GitLab