Skip to content

Commit a457ba4

Browse files
committed
Merge branch 'release/v1.1'
2 parents 9539302 + d9ffb87 commit a457ba4

152 files changed

Lines changed: 1115 additions & 771 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/sonarcloud.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,12 @@ jobs:
1717
run: |
1818
wget http://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip
1919
unzip build-wrapper-linux-x86.zip
20-
- name: Build
21-
run: ci/buildsonarcloud.sh
22-
- name: SonarCloud Scan
20+
- name: Install sonar scanner
2321
run: |
2422
wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.6.2.2472-linux.zip
2523
unzip sonar-scanner-cli-4.6.2.2472-linux.zip
26-
sonar-scanner-4.6.2.2472-linux/bin/sonar-scanner -Dsonar.host.url=https://sonarcloud.io
24+
- name: Build and scan
25+
run: ci/buildsonarcloud.sh
2726
env:
2827
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2928
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ set(INCLUDE_DIRS
5656
set(LINK_LIBRARIES
5757
resource
5858
view
59-
view-settings
59+
view-dialogs
60+
view-dialogs-settings
6061
view-task
6162
view-view2d
6263
model

ci/buildsonarcloud.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,20 @@ pushd "$BUILD_DIR"
3030

3131
# configure build files with CMake
3232
# we need to explicitly set the install prefix, as CMake's default is /usr/local for some reason...
33-
cmake "$REPO_ROOT" -DCMAKE_INSTALL_PREFIX=/usr
33+
cmake "$REPO_ROOT" -DCMAKE_BUILD_TYPE=Debug -DENABLE_COVERAGE=ON
3434

3535
# Wraps the compilation with the Build Wrapper to generate configuration (used
3636
# later by the SonarQube Scanner) into the "bw-output" folder
3737
"$REPO_ROOT"/build-wrapper-linux-x86/build-wrapper-linux-x86-64 \
38-
--out-dir $"$REPO_ROOT"/bw-output cmake \
38+
--out-dir bw-output cmake \
3939
--build .
40+
# Test project
41+
ctest -VV
42+
43+
# Generate coverage report
44+
make gcov
45+
46+
# Scan project
47+
"$REPO_ROOT"/sonar-scanner-4.6.2.2472-linux/bin/sonar-scanner -Dsonar.host.url=https://sonarcloud.io -Dproject.settings="$REPO_ROOT"/sonar-project.properties -Dsonar.projectBaseDir="$REPO_ROOT" -Dsonar.cfamily.gcov.reportsPath="$BUILD_DIR"
48+
4049

ci/buildtestcoverage.sh

Lines changed: 0 additions & 47 deletions
This file was deleted.

codecov.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

src/config/config.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
#include <fstream>
66

7-
namespace Config
7+
namespace config
88
{
99

1010
Config::Config(const std::string &filePath)

src/config/config.h.in

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
#include <config/list.h>
77
#include <config/property.h>
88

9-
namespace Config
9+
namespace config
1010
{
1111

12-
namespace Internal
12+
namespace internal
1313
{
1414

1515
{% for node in nodes %}{% if node.__class__ == Group %}
@@ -77,19 +77,19 @@ public:
7777
}
7878

7979
{% for child in root.children %}
80-
using {{ child.class_name }} = Internal::{{ child.unique_class_name }};
80+
using {{ child.class_name }} = internal::{{ child.unique_class_name }};
8181
{% endfor %}
8282

83-
using Root = Internal::{{ root.unique_class_name }};
83+
using Root = internal::{{ root.unique_class_name }};
8484

8585
using NodeVariant = std::variant<
8686
{% for node in nodes %}{% if node.__class__ != Property %}
87-
Internal::{{ node.unique_class_name }}{{ ", " if not loop.last }}{% endif %}{% endfor %}
87+
internal::{{ node.unique_class_name }}{{ ", " if not loop.last }}{% endif %}{% endfor %}
8888
>;
8989

9090
using NodePtrVariant = std::variant<
9191
{% for node in nodes %}{% if node.__class__ != Property %}
92-
Internal::{{ node.unique_class_name }}*{{ ", " if not loop.last }}{% endif %}{% endfor %}
92+
internal::{{ node.unique_class_name }}*{{ ", " if not loop.last }}{% endif %}{% endfor %}
9393
>;
9494

9595
class Config

src/config/group.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
#include <config/node.h>
66

7-
namespace Config
7+
namespace config
88
{
99

1010
/** @brief A configuration group.

src/config/list.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
#include <config/node.h>
77

8-
namespace Config
8+
namespace config
99
{
1010

1111
/** @brief A configuration node list.

0 commit comments

Comments
 (0)