File: .gitlab-ci.yml

package info (click to toggle)
nitrokey-authenticator 1.2.4-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 728 kB
  • sloc: cpp: 2,883; xml: 43; makefile: 7
file content (39 lines) | stat: -rw-r--r-- 809 bytes parent folder | download
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