Adding sim and test

This commit is contained in:
2024-11-05 09:29:38 +01:00
parent 29e8aa9e85
commit 897e54901f
17 changed files with 465 additions and 161 deletions

View File

@ -2,11 +2,12 @@ default:
image: docker.psi.ch:5000/wall_e/sinqepics:latest
stages:
- test
- lint
- build
- test
cppcheck:
stage: test
stage: lint
script:
- cppcheck --std=c++17 --addon=cert --addon=misc --error-exitcode=1 src/*.cpp
artifacts:
@ -15,7 +16,7 @@ cppcheck:
- docker
formatting:
stage: test
stage: lint
script:
- clang-format --style=file --Werror --dry-run src/*.cpp
artifacts:
@ -24,7 +25,7 @@ formatting:
- docker
# clangtidy:
# stage: test
# stage: lint
# script:
# - curl https://docker.psi.ch:5000/v2/_catalog
# # - dnf update -y
@ -47,3 +48,14 @@ build_module:
when: always
tags:
- docker
# TODO I don't know why this fails and gave up debugging for now
# test_module:
# stage: test
# script:
# - mkdir -p "/ioc/modules/counterbox"
# - cp -rT "./counterbox-${CI_COMMIT_TAG:-$CI_COMMIT_SHORT_SHA}" "/ioc/modules/counterbox/0.0.1" # Seems it needs a number
# - python3 test/test.py
# when: always
# tags:
# - docker