Skip to content

Commit e5cdfb9

Browse files
committed
Public release
0 parents  commit e5cdfb9

File tree

355 files changed

+57869
-0
lines changed

Some content is hidden

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

355 files changed

+57869
-0
lines changed

.cppcheck-suppressions-list

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*:*/3rd-part/*
2+
unusedFunction:*
3+
missingIncludeSystem:*
4+
unmatchedSuppression:*
5+
noExplicitConstructor:*/src/test_tools/boost_predicate_wrapper.hpp

.cppinclude.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"project_dir" : "./src",
3+
"file_extentions" : ["*.cpp", "*.hpp"],
4+
"include_dirs" : [".", "/usr/include/", "./3rd-part/cpp-std-fwd-master/"],
5+
"ignore_dirs" : ["./3rd-part"]
6+
}

.cspell.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
3+
"version": "0.1",
4+
"language": "en",
5+
"ignorePaths": [
6+
"*src/3rd-part/**",
7+
"**/CMakeLists.txt",
8+
"**/CMakeLists.txt.user",
9+
"*src/cmake/**"
10+
],
11+
"languageSettings": [
12+
{
13+
"languageId": "c,cpp",
14+
"local": "*",
15+
16+
"dictionaries": ["cpp"],
17+
"dictionaryDefinitions": []
18+
}
19+
],
20+
"words": [
21+
"nlohmann",
22+
"ccomplex"
23+
],
24+
}

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*.user
2+
build/
3+
cppinclude
4+
cppinclude.exe

.gitlab-ci.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
build_gcc:
2+
stage: build
3+
image: ubuntu
4+
script:
5+
- apt-get update
6+
- apt-get install cmake gcc g++ -y
7+
# Build without boost
8+
- ./build.sh
9+
# Build with boost
10+
- apt-get install libboost-test-dev -y
11+
- cd build
12+
- cmake ../src/ -DCMAKE_BUILD_TYPE=Release -DCPPINCLUDE_BUILD_WITH_TESTS=ON
13+
- cmake --build . --config Release
14+
# Run tests
15+
- ctest . -C Release
16+
17+
build_clang:
18+
stage: build
19+
image: ubuntu
20+
script:
21+
- apt-get update
22+
- apt-get install cmake clang -y
23+
# Build without boost
24+
- ./build.sh
25+
# Build with boost
26+
- apt-get install libboost-test-dev -y
27+
- cd build
28+
- cmake ../src/ -DCMAKE_BUILD_TYPE=Release -DCPPINCLUDE_BUILD_WITH_TESTS=ON
29+
- cmake --build . --config Release
30+
# Run tests
31+
- ctest . -C Release
32+
33+
build_windows:
34+
stage: build
35+
tags:
36+
- shared-windows
37+
- windows
38+
- windows-1809
39+
script:
40+
- choco install cmake -y
41+
- $env:PATH="C:\Program Files\CMake\bin;$env:PATH"
42+
# Build without boost
43+
- cmd /c ".\build.bat"
44+
# Clean build folder
45+
- rm -r -fo ./build
46+
- mkdir build
47+
- cd build
48+
# Build with boost
49+
- vcpkg install boost-test:x64-windows
50+
- vcpkg install boost-system:x64-windows
51+
- cmake ../src/ -DCMAKE_BUILD_TYPE=Release -DCPPINCLUDE_BUILD_WITH_TESTS=ON -DCMAKE_TOOLCHAIN_FILE=C:\vcpkg\scripts\buildsystems\vcpkg.cmake
52+
- cmake --build . --config Release
53+
# Run tests
54+
- ctest . -C Release
55+
56+
check_typos:
57+
stage: build
58+
image: ubuntu
59+
script:
60+
- apt-get update
61+
- export DEBIAN_FRONTEND=noninteractive
62+
- ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime
63+
- apt-get install -y tzdata
64+
- dpkg-reconfigure --frontend noninteractive tzdata
65+
- apt-get install npm -y
66+
- npm install -g cspell
67+
- cspell "src/**/*"
68+
69+
cppcheck:
70+
stage: build
71+
image: ubuntu
72+
script:
73+
- apt-get update
74+
- apt-get install cmake gcc g++ libboost-test-dev -y
75+
- apt-get install cppcheck -y
76+
- cd build
77+
- cmake ../src/ -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCPPINCLUDE_BUILD_WITH_TESTS=ON
78+
- cppcheck --project=compile_commands.json --enable=all --suppressions-list=../.cppcheck-suppressions-list --error-exitcode=1 --quiet
79+

0 commit comments

Comments
 (0)