Skip to content

Commit

Permalink
gitlab files
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianBach committed Apr 24, 2024
1 parent 3881bc7 commit 738822f
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 59 deletions.
42 changes: 1 addition & 41 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,7 @@
include: '/gitlab/ci.yml'

build-all:
stage: build
script:
- echo "build all"
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Release -DADD_BASIC_TOOLS=ON -DADD_SDK=ON -DADD_C_LIB=ON -DADD_DYNAMIC_LIB=ON -DADD_PYTHON_MODULE=ON -DADD_QT_APP=ON -DADD_PY_DOCS=ON -DADD_LIB_DOCS=ON -DADD_SCRIPT_TOOLS=ON -DADD_ASSEMBLY_PROGRAM=ON ..
- cmake --build . -j --config Release
- ctest -C Release -VV
- cmake --install .

artifacts:
paths:
- build/product
tags:
- os:linux


check-cppcheck:
stage: build
script:
- echo "cppcheck"
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DADD_BASIC_TOOLS=ON -DADD_SDK=ON -DADD_C_LIB=ON -DADD_DYNAMIC_LIB=ON -DADD_PYTHON_MODULE=ON -DADD_QT_APP=ON -DADD_SCRIPT_TOOLS=ON -DADD_ASSEMBLY_PROGRAM=ON ..
- cmake --build . -j --config Release
- cppcheck --project=compile_commands.json --cppcheck-build-dir=./temp/cppcheck
tags:
- os:linux


check-valigrind:
stage: build
script:
- echo "valgrind"
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_VALGRIND=ON -DADD_BASIC_TOOLS=ON -DADD_SDK=ON -DADD_C_LIB=ON -DADD_DYNAMIC_LIB=ON -DADD_SCRIPT_TOOLS=ON -DADD_ASSEMBLY_PROGRAM=ON ..
- cmake --build .
- ctest -T memcheck
artifacts:
paths:
- build/Testing/Temporary/
tags:
- os:linux

18 changes: 0 additions & 18 deletions gitlab

This file was deleted.

19 changes: 19 additions & 0 deletions gitlab/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

build_all_linux_x86_64:
stage: build
needs: []
script:
- echo "build all"
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Release -DADD_BASIC_TOOLS=ON -DADD_SDK=ON -DADD_C_LIB=ON -DADD_DYNAMIC_LIB=ON -DADD_PYTHON_MODULE=ON -DADD_QT_APP=ON -DADD_PY_DOCS=ON -DADD_LIB_DOCS=ON -DADD_SCRIPT_TOOLS=ON -DADD_ASSEMBLY_PROGRAM=ON ..
- cmake --build . -j --config Release
- ctest -C Release -VV
- cmake --install .

artifacts:
paths:
- build
tags:
- os:linux
- os:x86_64
28 changes: 28 additions & 0 deletions gitlab/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

check-cppcheck:
stage: check
script:
- echo "cppcheck"
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DADD_BASIC_TOOLS=ON -DADD_SDK=ON -DADD_C_LIB=ON -DADD_DYNAMIC_LIB=ON -DADD_PYTHON_MODULE=ON -DADD_SCRIPT_TOOLS=ON -DADD_ASSEMBLY_PROGRAM=ON ..
- cppcheck --project=compile_commands.json --cppcheck-build-dir=./temp/cppcheck
tags:
- os:linux
- os:x86_64

check-valgrind:
stage: check
script:
- echo "valgrind"
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_VALGRIND=ON -DADD_BASIC_TOOLS=ON -DADD_SDK=ON -DADD_C_LIB=ON -DADD_DYNAMIC_LIB=ON -DADD_SCRIPT_TOOLS=ON -DADD_ASSEMBLY_PROGRAM=ON ..
- cmake --build .
- ctest -T memcheck
artifacts:
paths:
- build/Testing/Temporary/
tags:
- os:linux
- os:x86_64
9 changes: 9 additions & 0 deletions gitlab/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
stages:
- check
- build
- test

include:
- 'gitlab/checks.yml'
- 'gitlab/build.yml'
- 'gitlab/test.yml'
14 changes: 14 additions & 0 deletions gitlab/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
test_all_linux_x86_64:
stage: test
needs: ["build_all_linux_x86_64"]
script:
- echo "test all"
- cd build
- ctest -C Release -VV
- cmake --install .
artifacts:
paths:
- build/product
tags:
- os:linux
- os:x86_64

0 comments on commit 738822f

Please sign in to comment.