From 49b23cf84fd884f8d2028e697bab6887f2f0f939 Mon Sep 17 00:00:00 2001
From: Moritz Maxeiner <mm@ucw.sh>
Date: Tue, 10 Dec 2019 15:46:28 +0100
Subject: [PATCH] ci: add centos-7 build

---
 .gitlab-ci.yml                    | 19 +++++++++++++++++++
 Src/Model/Network/TcpListener.cpp |  2 +-
 2 files changed, 20 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5edeeb9..131e54a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,6 +3,9 @@ stages:
   - package
   - deploy
 
+.centos-7:
+  tags: [ linux, docker ]
+  image: git.imp.fu-berlin.de:5000/bioroboticslab/robofish/docker:centos-7
 
 .ubuntu-18.04:
   tags: [ linux, docker ]
@@ -36,6 +39,16 @@ stages:
     expire_in: 1 day
   script: ./.gitlab-ci.py build
 
+build centos-7:
+  extends: .centos-7
+  <<: *build
+  variables:
+    <<: [ *release ]
+  before_script:
+    - ./.gitlab-ci.py prepare
+      --dependency biotracker-interfaces bioroboticslab/biotracker/interfaces master 'package centos-7'
+      --dependency biotracker-utility    bioroboticslab/biotracker/utility    master 'package centos-7'
+
 build ubuntu-18.04:
   extends: .ubuntu-18.04
   <<: *build
@@ -66,6 +79,12 @@ build windows-1809:
     expire_in: 1 week
   script: ./.gitlab-ci.py package
 
+package centos-7:
+  extends: .centos-7
+  dependencies:
+    - build centos-7
+  <<: *package
+
 package ubuntu-18.04:
   extends: .ubuntu-18.04
   dependencies:
diff --git a/Src/Model/Network/TcpListener.cpp b/Src/Model/Network/TcpListener.cpp
index 0a04c53..4f76136 100644
--- a/Src/Model/Network/TcpListener.cpp
+++ b/Src/Model/Network/TcpListener.cpp
@@ -59,7 +59,7 @@ std::string TcpListener::sendPositions(
 	}
 	str << "end\n";
 
-	//std::cout << str.str() << std::endl;
+	std::cout << str.str() << std::endl;
 
 #ifdef SAVETRACKINGPACKAGES
 	_trackingInfoOutputFile4Simulation << str.str();
-- 
GitLab