Skip to content
Snippets Groups Projects
.gitlab-ci.yml 4.30 KiB
image: "flowdalic/debian-testing-dev:1.12"

before_script:
  - |
    readarray TOOLS <<EOF
    c++
    cc
    clang
    clang++
    clang-tidy
    doxygen
    g++
    gcc
    include-what-you-use
    meson
    nasm
    valgrind
    EOF
    for tool in ${TOOLS[@]}; do
      echo -n "$tool version: "
      $tool --version
    done

variables:
  BUILDDTYPE: debugoptimized
  CC: gcc
  CXX: g++
  EXTRA_NINJA_ARGS: -v
  EMPER_IO: "false"

stages:
  - smoke-test
  - test

.meson-test:
  artifacts:
    paths:
      - build-*/meson-logs
    when: on_failure
    reports:
      junit: build-*/meson-logs/testlog.junit.xml

smoke-test-suite:
  extends:
    - .meson-test
  stage: smoke-test
  script: make smoke-test-suite

fast-static-analysis:
   stage: smoke-test
   script: make fast-static-analysis
   variables:
       EMPER_IO: "true"

iwyu:
   stage: smoke-test
   script: IWYU_TOOL="${CI_PROJECT_DIR}/tools/iwyu_tool.py" make iwyu
   variables:
       EMPER_IO: "true"

clang-tidy:
   stage: smoke-test
   script: make tidy
   variables:
       EMPER_IO: "true"

.test:
  extends:
    - .meson-test
  stage: test