aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 11a7ec66df982e9dd54fb6eae690638e94c9611d (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
image: fedora:latest

variables:
  DEPS: meson ninja-build make
        gcc pkg-config glib2-devel
        mingw64-gcc mingw64-pkg-config mingw64-glib2
        clang-analyzer

before_script:
  - dnf install -y $DEPS

build:
  script:
    - meson --werror build || (cat build/meson-logs/meson-log.txt && exit 1)
    - ninja -C build
    - (cd build && meson test) || (cat build/meson-logs/testlog.txt && exit 1)
    - ninja -C build scan-build

build-mingw64:
  script:
    - (mkdir buildw && cd buildw && mingw64-meson --werror) || (cat buildw/meson-logs/meson-log.txt && exit 1)
    - ninja -C buildw

build-qemu:
  script:
    - make BUILD_DIR=build