aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 41d38badbf566ddbb71373b4f86d799f0430b4cd (plain)
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
40
image: ubuntu:21.04

variables:
  DEBIAN_FRONTEND: noninteractive

before_script:
  - apt-get --quiet update --yes >/dev/null
  - apt-get --quiet install --yes clang-12 clang-tidy-12 clang-format-12 git libdrm-dev blueprint-tools libgtest-dev >/dev/null

stages:
  - build
  - style

build:
  stage: build
  script: "./.ci/.gitlab-ci-clang-build.sh"
  artifacts:
    when: on_failure
    untracked: true

checkstyle:
  stage: style
  script: "./.ci/.gitlab-ci-checkcommit.sh"
  artifacts:
    when: on_failure
    untracked: true

tidy-coarse:
  stage: style
  script: "./.ci/.gitlab-ci-clang-tidy-coarse.sh"
  artifacts:
    when: on_failure
    untracked: true

tidy-fine:
  stage: style
  script: "./.ci/.gitlab-ci-clang-tidy-fine.sh"
  artifacts:
    when: on_failure
    untracked: true