From bcb86d8728bcb5a6ffe375c188da2a425b257ee3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20R=C4=99bacz?= Date: Fri, 30 Sep 2022 01:02:17 +0200 Subject: [PATCH] Initial Circle CI Integration (#102) CircleCI allow us to build each commit and especially commits from master branch. In the version dedicated to open source it can only works within Linux environment. Resource are also limited, but it offers 4 cores and 8 GB of RAM, which is sufficient to build TheIDE. My implementation runs TheIDE and UMK makiles. In the future it can be extended for more advanced things such as running auto-test scripts. Image cimg/base:2022.09 offers Clang 11, which is sufficient for our needs. No more DDUMPS :) --- .circleci/config.yml | 15 +++++++++++++++ uppsrc/ide/Debuggers/Gdb.cpp | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 000000000..280c8a4c9 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,15 @@ +version: 2.1 + +jobs: + build: + docker: + - image: cimg/base:2022.09 + resource_class: large + environment: + NUMBER_OF_CPUS: 4 + steps: + - checkout + - run: sudo apt-get update + - run: sudo apt-get install g++ clang git make libgtk-3-dev libnotify-dev libbz2-dev libssl-dev xdotool + - run: make -f Makefile -j ${NUMBER_OF_CPUS} + - run: make -f umkMakefile.in -j ${NUMBER_OF_CPUS} diff --git a/uppsrc/ide/Debuggers/Gdb.cpp b/uppsrc/ide/Debuggers/Gdb.cpp index 98eb74a14..765091cba 100644 --- a/uppsrc/ide/Debuggers/Gdb.cpp +++ b/uppsrc/ide/Debuggers/Gdb.cpp @@ -599,7 +599,7 @@ bool Gdb::Create(Host& host, const String& exefile, const String& cmdline, bool #ifdef PLATFORM_POSIX #ifndef PLATFORM_MACOS - system("setxkbmap -option grab:break_actions"); // to be able to recover capture in breakpoint + IGNORE_RESULT(system("setxkbmap -option grab:break_actions")); // to be able to recover capture in breakpoint String xdotool_chk = ConfigFile("xdotool_chk"); if(!FileExists(xdotool_chk) && system("xdotool key XF86Ungrab")) { Exclamation("[* xdotool] utility is not installed or does not work properly.&"