1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
variables:
GIT_SUBMODULE_STRATEGY: recursive
SAST_EXCLUDED_PATHS: "spec, test, tests, tmp, build, libnitrokey, googletest"
stages:
- build
- test
image: "debian:bullseye"
.setup_debian:
script:
- apt update && apt upgrade -y
- apt install -y build-essential cmake git pkg-config libboost-log-dev libgtest-dev qtbase5-dev qttools5-dev libzbarqt-dev libhidapi-dev libnitrokey-dev
build_debian:
stage: build
artifacts:
paths:
- build/
before_script:
- !reference [.setup_debian, script]
script:
- mkdir build
- cd build
- cmake -DPACKAGE_TESTS=ON ..
- make
test_debian:
stage: test
before_script:
- !reference [.setup_debian, script]
script:
- cd build && ctest ..
sast:
stage: test
include:
- template: Security/SAST.gitlab-ci.yml
|