From 4f87fd0b196264ef061a0e372d36e14af816869d Mon Sep 17 00:00:00 2001
From: Roland Jansky <roland.jansky@cern.ch>
Date: Fri, 26 Apr 2019 15:47:50 +0200
Subject: [PATCH] trying to add first CI and docker image building

---
 .gitlab-ci.yml | 21 +++++++++++++++++++++
 Dockerfile     | 11 +++++++++++
 2 files changed, 32 insertions(+)
 create mode 100644 .gitlab-ci.yml
 create mode 100644 Dockerfile

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 00000000..26e19d47
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,21 @@
+variables:
+  # all submodules will be cloned recursively upon start of CI job
+  GIT_SUBMODULE_STRATEGY: recursive
+  GIT_SSL_NO_VERIFY: "true"
+
+stages:
+  - build
+
+##########################
+# BUILD stage            #                                
+##########################
+
+build_image:
+  # description: triggers a build of the project as a Docker image,
+  #              each branch will have an individual Docker image that will be used
+  #              in the following stages of the pipeline for testing the code
+  stage: build
+  tags:
+    - docker-image-build
+  script:
+    - ignore
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 00000000..cca60d25
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,11 @@
+# The release set in this Dockerfile defines the release of the whole project
+# and is parsed by every setup script and by the installation instructions.
+# Be aware of this effect if you edit the release here!
+FROM atlas/atlas_external_cvmfs
+ADD . /calypso
+WORKDIR /build
+RUN setupATLAS && \
+    asetup master,latest,Athena && \
+    cmake -DCMAKE_INSTALL_PREFIX=../run ../calypso && \
+    make
+
-- 
GitLab