.gitlab-ci.yml 951 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
stages:
  - build

build-debian:
  image: debian:buster
  tags:
    - librem5
  before_script:
    - apt-get -y update
10
    - apt-get -y install build-essential libgtk-3-doc lcov
11 12 13 14
    - apt-get -y build-dep .
  stage: build
  script:
    - export LC_ALL=C.UTF-8
15
    - meson . _build -Dgtk_doc=true -Db_coverage=true --werror
16
    - ninja -C _build
Guido Gunther's avatar
Guido Gunther committed
17 18 19
    - ninja -C _build meson-libhandy-doc 2>&1 | tee _build/doc/buildlog
    # Check gtk-doc did not produce any new warnings
    - "! grep -qs 'warning' _build/doc/buildlog"
20
    - xvfb-run ninja -C _build test
21 22 23 24 25 26
    - ninja -C _build coverage
  coverage: '/^\s+lines\.+:\s+([\d.]+\%)\s+/'
  artifacts:
    when: always
    paths:
      - _build
27 28 29 30 31 32 33 34 35 36 37 38

build-debian-package:
  image: debian:buster
  tags:
    - librem5
  before_script:
    - apt-get -y update
    - apt-get -y install build-essential dpkg-dev libgtk-3-doc lcov
    - apt-get -y build-dep .
  stage: build
  script:
    - dpkg-buildpackage -uc -us