aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.gitlab-ci.yml
blob: e0bd22d0830d61994675509d541a72eb6e4fa5b6 (plain) (blame)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
cppcheck:
  image: ubuntu:bionic
  before_script:
    - apt update
    - apt install -y --no-install-recommands cppcheck=1.82-1 doxygen clang clang-tools-extra
    - cppcheck --version
  script:
    - cppcheck ./*.cpp --verbose --enable=all --inconclusive --


clang-tidy:
  image: ubuntu:bionic
  before_script:
    - apt update
    - apt install -y --no-install-recommands clang clang-tools-extra
    - clang-tidy --version
  script:
    - clang-tidy -warnings-as-errors="*" -checks="-*,clang-analyze"


doxygen:
  image: ubuntu:bionic
  before_script:
    - apt update
    - apt install -y --no-install-recommands doxygen
    - doxygen --version
    - mkdir -p build/docs
  script:
    - doxygen docs/Doxyfile
  artifacts:
    paths:
      - build/docs/html






build:
  image: gcc
#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
  stage: build
  before_script:
     - apt update && apt -y install make cmake qt5-default libqt5network5 libqt5test5 libqt5core5a
  script:
    - mkdir -p build && cd build
    - cmake .. -DCMAKE_BUILD_TYPE=Release
    - cmake --build .
  artifacts:
    paths:
      - build/libdiceparser.so.1.9.0
      - build/cli/bin/dice
  # run tests using the binary built before
  test:
    stage: test
    script:
      - make test