From 24a8d11d3edebfbb26fd239c61cff9e6c7e4c147 Mon Sep 17 00:00:00 2001 From: quinox Date: Fri, 14 May 2021 23:21:40 +0200 Subject: [PATCH] Test building Clang/GCC on 20.04/18.04 --- .travis.yml | 22 ++++++++++++++++++++++ README.md | 2 ++ mosquittoauthoptcompatwrap.h | 1 + utils.cpp | 2 +- 4 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..1ac4a74 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,22 @@ +language: cpp + +jobs: + include: + - name: "Ubuntu 18.04 | Clang" + dist: bionic + compiler: clang + - name: "Ubuntu 18.04 | GCC" + dist: bionic + compiler: gcc + - name: "Ubuntu 20.04 | Clang" + dist: focal + compiler: clang + - name: "Ubuntu 20.04 | GCC" + dist: focal + compiler: gcc + +script: +- set -e # If any step reports a problem consider the whole build a failure +- ./build.sh +- ./FlashMQBuildRelease/FlashMQ --version +- set +e # Prevent Travis internals from breaking our build, see https://github.com/travis-ci/travis-ci/issues/891 diff --git a/README.md b/README.md index ae65b62..46a0f83 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ # FlashMQ +[![Build Status](https://travis-ci.com/halfgaar/FlashMQ.svg?branch=master)](https://travis-ci.com/halfgaar/FlashMQ) + FlashMQ is a light-weight MQTT broker/server, designed to take good advantage of multi-CPU environments. Build with buid.sh. diff --git a/mosquittoauthoptcompatwrap.h b/mosquittoauthoptcompatwrap.h index a3a43d3..dd2cd3a 100644 --- a/mosquittoauthoptcompatwrap.h +++ b/mosquittoauthoptcompatwrap.h @@ -21,6 +21,7 @@ License along with FlashMQ. If not, see . #include #include #include +#include /** * @brief The mosquitto_auth_opt struct is a resource managed class of auth options, compatible with passing as arguments to Mosquitto diff --git a/utils.cpp b/utils.cpp index 92b6832..3e525de 100644 --- a/utils.cpp +++ b/utils.cpp @@ -32,7 +32,7 @@ License along with FlashMQ. If not, see . #include "logger.h" #include "evpencodectxmanager.h" -std::list split(const std::string &input, const char sep, size_t max, bool keep_empty_parts) +std::list split(const std::string &input, const char sep, size_t max, bool keep_empty_parts) { std::list list; size_t start = 0; -- libgit2 0.21.4