Switch to Sinq CI
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
default:
|
||||
image: docker.psi.ch:5000/wall_e/sinqepics:latest
|
||||
image: docker.psi.ch:5000/sinqdev/sinqepics:latest
|
||||
|
||||
stages:
|
||||
- lint
|
||||
@ -13,7 +13,7 @@ cppcheck:
|
||||
artifacts:
|
||||
expire_in: 1 week
|
||||
tags:
|
||||
- docker
|
||||
- sinq
|
||||
|
||||
formatting:
|
||||
stage: lint
|
||||
@ -22,7 +22,7 @@ formatting:
|
||||
artifacts:
|
||||
expire_in: 1 week
|
||||
tags:
|
||||
- docker
|
||||
- sinq
|
||||
|
||||
# clangtidy:
|
||||
# stage: lint
|
||||
@ -32,12 +32,13 @@ formatting:
|
||||
# # - dnf install -y clang-tools-extra
|
||||
# # - clang-tidy sinqEPICSApp/src/*.cpp sinqEPICSApp/src/*.c sinqEPICSApp/src/*.h -checks=cppcoreguidelines-*,cert-*
|
||||
# # tags:
|
||||
# # - docker
|
||||
# # - sinq
|
||||
|
||||
build_module:
|
||||
stage: build
|
||||
script:
|
||||
- sed -i 's/ARCH_FILTER=.*/ARCH_FILTER=linux%/' Makefile
|
||||
- echo "LIBVERSION=${CI_COMMIT_TAG:-0.0.1}" >> Makefile
|
||||
- make install
|
||||
- cp -rT "/ioc/modules/counterbox/$(ls -U /ioc/modules/counterbox/ | head -1)" "./counterbox-${CI_COMMIT_TAG:-$CI_COMMIT_SHORT_SHA}"
|
||||
artifacts:
|
||||
@ -47,15 +48,14 @@ build_module:
|
||||
expire_in: 1 week
|
||||
when: always
|
||||
tags:
|
||||
- docker
|
||||
- sinq
|
||||
|
||||
# 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
|
||||
test_module:
|
||||
stage: test
|
||||
script:
|
||||
- mkdir -p "/ioc/modules/counterbox"
|
||||
- cp -rT "./counterbox-${CI_COMMIT_TAG:-$CI_COMMIT_SHORT_SHA}" "/ioc/modules/counterbox/${CI_COMMIT_TAG:-0.0.1}"
|
||||
- python3 test/test.py
|
||||
when: always
|
||||
tags:
|
||||
- sinq
|
||||
|
Reference in New Issue
Block a user