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

before_script:
  - ulimit -a
  - nproc
  - |
    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

cache:
  paths:
    - subprojects/packagecache

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

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"

.fast-variant-check:
   stage: test
   script: make fast-static-analysis smoke-test-suite
   variables:
       EMPER_IO: "true"

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