From 78c5d01e0b1aeb904ab487008c9c42464541bf26 Mon Sep 17 00:00:00 2001
From: Lais Frigerio <laaisfrigerio@gmail.com>
Date: Wed, 22 Mar 2017 08:29:12 -0300
Subject: [PATCH] Modified the agent test from gitlab ci to build libcurl
 statically

---
 .gitlab-ci.yml     | 2 +-
 src/agent/main.cpp | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 23246c97..faf5b4ee 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -31,7 +31,7 @@ compile:
         - git submodule update --init --recursive
         - mkdir build
         - cd build
-        - cmake -DPRINT_JSON=ON ..
+        - cmake -DCURL_STATICLIB=ON -DPRINT_JSON=ON ..
         - make
 
 testDebian:
diff --git a/src/agent/main.cpp b/src/agent/main.cpp
index 564ecdab..7247dde8 100644
--- a/src/agent/main.cpp
+++ b/src/agent/main.cpp
@@ -29,8 +29,10 @@
 
 int main() {
 
+    #ifdef UPDATE_JSON
     std::cout << "datasid-conf.json"<<
      boost::filesystem::file_size("/home/lais/agent/conf/datasid-conf.json");
+    #endif
     datasid_agent();
     send_inventory();
     send_net_bandwidth();
-- 
GitLab