Skip to content

Commit

Permalink
Merge pull request #35 from ess-dmsc/gcc8_build_node
Browse files Browse the repository at this point in the history
Gcc8 build node
  • Loading branch information
amues authored Jan 16, 2020
2 parents 92fca3e + 1755ad8 commit 0e816f8
Show file tree
Hide file tree
Showing 11 changed files with 35 additions and 34 deletions.
8 changes: 4 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ properties([[
]
]]);

clangformat_os = "debian9"
clangformat_os = "debian10"
test_os = "ubuntu1804"

container_build_nodes = [
'centos7': ContainerBuildNode.getDefaultContainerBuildNode('centos7'),
'debian9': ContainerBuildNode.getDefaultContainerBuildNode('debian9'),
'ubuntu1804': ContainerBuildNode.getDefaultContainerBuildNode('ubuntu1804')
'centos7': ContainerBuildNode.getDefaultContainerBuildNode('centos7-gcc8'),
'debian10': ContainerBuildNode.getDefaultContainerBuildNode('debian10'),
'ubuntu1804': ContainerBuildNode.getDefaultContainerBuildNode('ubuntu1804-gcc8')
]

pipeline_builder = new PipelineBuilder(this, container_build_nodes)
Expand Down
36 changes: 18 additions & 18 deletions console_logger/getopt.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,24 @@
* warranties of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
/*
* Copyright (c) 2002 Todd C. Miller <Todd.Miller@courtesan.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
* Sponsored in part by the Defense Advanced Research Projects
* Agency (DARPA) and Air Force Research Laboratory, Air Force
* Materiel Command, USAF, under agreement number F39502-99-1-0512.
*/
* Copyright (c) 2002 Todd C. Miller <Todd.Miller@courtesan.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
* Sponsored in part by the Defense Advanced Research Projects
* Agency (DARPA) and Air Force Research Laboratory, Air Force
* Materiel Command, USAF, under agreement number F39502-99-1-0512.
*/
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
* All rights reserved.
Expand Down
9 changes: 5 additions & 4 deletions include/graylog_logger/LoggingBase.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ class LoggingBase {
}
virtual void log(const Severity Level, const std::string &Message,
const std::pair<std::string, AdditionalField> &ExtraField) {
log(Level, Message, std::vector<std::pair<std::string, AdditionalField>>{
ExtraField,
});
log(Level, Message,
std::vector<std::pair<std::string, AdditionalField>>{
ExtraField,
});
}

#ifdef WITH_FMT
Expand Down Expand Up @@ -109,7 +110,7 @@ class LoggingBase {
virtual bool flush(std::chrono::system_clock::duration TimeOut) {
auto FlushCompleted = std::make_shared<std::promise<bool>>();
auto FlushCompletedValue = FlushCompleted->get_future();
Executor.SendWork([ =, FlushCompleted{std::move(FlushCompleted)} ]() {
Executor.SendWork([=, FlushCompleted{std::move(FlushCompleted)}]() {
std::vector<std::future<bool>> FlushResults;
for (auto &CHandler : Handlers) {
FlushResults.push_back(std::async(
Expand Down
2 changes: 1 addition & 1 deletion src/ConsoleInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void ConsoleInterface::addMessage(const LogMessage &Message) {
bool ConsoleInterface::flush(std::chrono::system_clock::duration TimeOut) {
auto WorkDone = std::make_shared<std::promise<void>>();
auto WorkDoneFuture = WorkDone->get_future();
Executor.SendWork([ =, WorkDone{std::move(WorkDone)} ]() {
Executor.SendWork([=, WorkDone{std::move(WorkDone)}]() {
std::cout.flush();
WorkDone->set_value();
});
Expand Down
2 changes: 1 addition & 1 deletion src/FileInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void FileInterface::addMessage(const LogMessage &Message) {
bool FileInterface::flush(std::chrono::system_clock::duration TimeOut) {
auto WorkDone = std::make_shared<std::promise<void>>();
auto WorkDoneFuture = WorkDone->get_future();
Executor.SendWork([ =, WorkDone{std::move(WorkDone)} ]() {
Executor.SendWork([=, WorkDone{std::move(WorkDone)}]() {
FileStream.flush();
WorkDone->set_value();
});
Expand Down
2 changes: 1 addition & 1 deletion src/GraylogConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ bool GraylogConnection::Impl::flush(
std::chrono::system_clock::duration TimeOut) {
auto WorkDone = std::make_shared<std::promise<void>>();
auto WorkDoneFuture = WorkDone->get_future();
LogMessages.try_enqueue([WorkDone = std::move(WorkDone)]()->std::string {
LogMessages.try_enqueue([WorkDone = std::move(WorkDone)]() -> std::string {
WorkDone->set_value();
return {};
});
Expand Down
2 changes: 1 addition & 1 deletion src/LoggingBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ void LoggingBase::setMinSeverity(Severity Level) {
auto WorkDone = std::make_shared<std::promise<void>>();
auto WorkDoneFuture = WorkDone->get_future();
Executor.SendWork(
[ =, WorkDone{std::move(WorkDone)} ]() { MinSeverity = Level; });
[=, WorkDone{std::move(WorkDone)}]() { MinSeverity = Level; });
WorkDoneFuture.wait();
}

Expand Down
2 changes: 1 addition & 1 deletion unit_tests/ConsoleInterfaceTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
// Copyright © 2016 European Spallation Source. All rights reserved.
//

#include "Semaphore.hpp"
#include "graylog_logger/ConsoleInterface.hpp"
#include "Semaphore.hpp"
#include <ciso646>
#include <gtest/gtest.h>

Expand Down
2 changes: 1 addition & 1 deletion unit_tests/FileInterfaceTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
// Copyright © 2016 European Spallation Source. All rights reserved.
//

#include "Semaphore.hpp"
#include "graylog_logger/FileInterface.hpp"
#include "Semaphore.hpp"
#include "graylog_logger/Log.hpp"
#include <ciso646>
#include <cstdio>
Expand Down
2 changes: 1 addition & 1 deletion unit_tests/GraylogInterfaceTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
// Copyright © 2016 European Spallation Source. All rights reserved.
//

#include "graylog_logger/GraylogInterface.hpp"
#include "LogTestServer.hpp"
#include "Semaphore.hpp"
#include "graylog_logger/GraylogInterface.hpp"
#include <ciso646>
#include <cmath>
#include <gmock/gmock.h>
Expand Down
2 changes: 1 addition & 1 deletion unit_tests/LoggingBaseTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
// Copyright © 2016 European Spallation Source. All rights reserved.
//

#include "graylog_logger/LoggingBase.hpp"
#include "BaseLogHandlerStandIn.hpp"
#include "graylog_logger/LibConfig.hpp"
#include "graylog_logger/LogUtil.hpp"
#include "graylog_logger/LoggingBase.hpp"
#include <asio.hpp>
#include <chrono>
#include <ciso646>
Expand Down

0 comments on commit 0e816f8

Please sign in to comment.