.gitlab-ci.yml 1.25 KB
Newer Older
Albert Astals Cid's avatar
Albert Astals Cid committed
1
2
3
4
include:
  - https://invent.kde.org/sysadmin/ci-tooling/raw/master/invent/ci-before.yml
  - https://invent.kde.org/sysadmin/ci-tooling/raw/master/invent/ci-applications-linux.yml

Albert Astals Cid's avatar
Albert Astals Cid committed
5
build_ubuntu_18_04:
Albert Astals Cid's avatar
Albert Astals Cid committed
6
  stage: build
Albert Astals Cid's avatar
Albert Astals Cid committed
7
  image: ubuntu:bionic
Albert Astals Cid's avatar
Albert Astals Cid committed
8
9
  only:
    - merge_requests
Albert Astals Cid's avatar
Albert Astals Cid committed
10
11
12
13
14
15
16
17
18
  before_script:
    - sed -i -e 's/# deb-src/deb-src/g' /etc/apt/sources.list
    - apt-get update
    - apt-get build-dep --yes --no-install-recommends okular
    - apt-get install --yes --no-install-recommends ninja-build libkf5crash-dev
  script:
    - mkdir -p build && cd build
    - cmake -G Ninja ..
    - ninja
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34

build_clang_tidy:
  stage: build
  image: debian:unstable
  only:
    - merge_requests
  before_script:
    - echo 'deb-src http://deb.debian.org/debian unstable main' >> /etc/apt/sources.list
    - apt-get update
    - apt-get build-dep --yes --no-install-recommends okular
    - apt-get install --yes --no-install-recommends ninja-build clang clang-tidy python python-yaml libkf5crash-dev libkf5purpose-dev

  script:
    - mkdir -p build && cd build
    - CC=clang CXX=clang++ cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -G Ninja ..
    - ninja
35
    - "run-clang-tidy -header-filter='.*' -checks='-*,modernize-redundant-void-arg,modernize-use-bool-literals' -config=\"{WarningsAsErrors: '*'}\""