From d6bfaf27ec3e40f7d2550cd35d0d5afac025d02c Mon Sep 17 00:00:00 2001
From: Konstantinos Sideris <sideris.konstantin@gmail.com>
Date: Sat, 15 Sep 2018 21:50:18 +0300
Subject: [PATCH] Fail build on errors

---
 .ci/coverage.sh       | 2 ++
 .ci/script.sh         | 2 ++
 lib/crypto/client.cpp | 2 ++
 3 files changed, 6 insertions(+)

diff --git a/.ci/coverage.sh b/.ci/coverage.sh
index aa3122f2a..9f58cfe33 100755
--- a/.ci/coverage.sh
+++ b/.ci/coverage.sh
@@ -1,5 +1,7 @@
 #!/bin/bash
 
+set -ex
+
 cd build/
 
 # Capture coverage info.
diff --git a/.ci/script.sh b/.ci/script.sh
index 81ad8e703..9f6a5e7b6 100755
--- a/.ci/script.sh
+++ b/.ci/script.sh
@@ -1,5 +1,7 @@
 #!/bin/bash
 
+set -ex
+
 if [ $TRAVIS_OS_NAME == linux ]; then
     sudo update-alternatives --remove-all gcc
     sudo update-alternatives --remove-all g++
diff --git a/lib/crypto/client.cpp b/lib/crypto/client.cpp
index 0d0f39619..4eaaa6d6d 100644
--- a/lib/crypto/client.cpp
+++ b/lib/crypto/client.cpp
@@ -3,6 +3,8 @@
 #include "mtxclient/crypto/client.hpp"
 #include "mtxclient/crypto/types.hpp"
 
+#include "sodium.h"
+
 using json = nlohmann::json;
 using namespace mtx::crypto;
 
-- 
GitLab