diff --git a/.cookiecutter.json b/.cookiecutter.json deleted file mode 100644 index 1557b05..0000000 --- a/.cookiecutter.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "_rsb_projectmaker_gitlab_pages_url": "git@code.rsint.net:klein_cl/netkit-tftp.git", - "_rsb_projectmaker_gitlab_project_id": "10815", - "_rsb_projectmaker_version": "0.6.0", - "_rsb_projectmaker_git_user_name": "klein_cl", - "_rsb_projectmaker_git_user_email": "claus.klein@rohde-schwarz.com", - "__project_url": "https://code.rsint.net/klein_cl/netkit-tftp", - "__standard_version": "17", - "_language": "C++", - "__namespace_name": "tftpd", - "__cmake_project_name": "netkit-tftp", - "project_name": "netkit-tftp", - "description": "ASIO tftp server for language C++", - "classification": "Company Restricted", - "target_runtime": "None (just input/output processing)", - "thread_safety": "Thread-unsafe", - "version": "0.17.0", - "server": "code.rsint.net", - "group": "units", - "maintainer_1": "Claus Klein", - "email_1": "claus.klein@rohde-schwarz.com", - "maintainer_2": "Hagen Pfeifer", - "email_2": "hagen.pfeifer@rohde-schwarz.com", - "language_standard": "C++17", - "_header_suffix": "hpp", - "_source_suffix": "cpp", - "_cmake_language": "CXX", - "_template": "/home/klein_cl/.local/lib/python3.10/site-packages/rsb_unitmaker/_templates", - "_template_version": "1.4.1", - "_template_directory": "cpp_cmake" -} diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 64b372d..70a98d1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -25,20 +25,22 @@ build-job: # This job runs in the build stage, which runs first. stage: build script: - echo "Compiling the code..." + - cmake --preset default + - cmake --build --preset default - echo "Compile complete." unit-test-job: # This job runs in the test stage. stage: test # It only starts when the job in the build stage completes successfully. script: - echo "Running unit tests... This will take about 60 seconds." - - sleep 60 - - echo "Code coverage is 90%" + - cmake --build --preset default --target test + - gcovr . lint-test-job: # This job also runs in the test stage. stage: test # It can run at the same time as unit-test-job (in parallel). script: - echo "Linting code... This will take about 10 seconds." - - sleep 10 + - run-clang-tidy -p build - echo "No lint issues found." deploy-job: # This job runs in the deploy stage. @@ -46,4 +48,4 @@ deploy-job: # This job runs in the deploy stage. environment: production script: - echo "Deploying application..." - - echo "Application successfully deployed." + - echo "Application NOT deployed yet."