default: image: docker.psi.ch:5000/wall_e/sinqepics:latest stages: - test - build cppcheck: stage: test script: - cppcheck --std=c++17 --addon=cert --addon=misc --error-exitcode=1 sinqEPICSApp/ allow_failure: true # Long term this needs to be removed artifacts: expire_in: 1 week tags: - docker formatting: stage: test script: - clang-format --style=file --Werror --dry-run sinqEPICSApp/src/*.cpp sinqEPICSApp/src/*.c sinqEPICSApp/src/*.h allow_failure: true # Long term this needs to be removed artifacts: expire_in: 1 week tags: - docker # clangtidy: # stage: test # script: # - curl https://docker.psi.ch:5000/v2/_catalog # # - dnf update -y # # - dnf install -y clang-tools-extra # # - clang-tidy sinqEPICSApp/src/*.cpp sinqEPICSApp/src/*.c sinqEPICSApp/src/*.h -checks=cppcoreguidelines-*,cert-* # # tags: # # - docker build_module: stage: build script: - sed -i 's/ARCH_FILTER=.*/ARCH_FILTER=linux%/' Makefile.RHEL8 - make -f Makefile.RHEL8 install - cp -rT "/ioc/modules/sinq/$(ls -U /ioc/modules/sinq/ | head -1)" "./sinq-${CI_COMMIT_SHORT_SHA}" artifacts: name: "sinq-${CI_COMMIT_SHORT_SHA}" paths: - "sinq-${CI_COMMIT_SHORT_SHA}/*" expire_in: 1 week when: always tags: - docker