summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 77b3b19365304521a533b633afc7d0a6261d426e (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
image: registry.gitlab.gnome.org/gnome/gtk-doc/debian:v2

stages:
  - build
  - test
  - deploy

# autotools

autotools-build:
  stage: build
  script:
    - ./autogen.sh --prefix=/usr
    - make
  except:
    - tags

autotools-test:
  stage: test
  script:
    - ./autogen.sh --prefix=/usr
    - make check
    - make -C tests coverage
  coverage: '/^TOTAL\s+\d+\s+\d+\s+([\d.]+\%)/'
  artifacts:
    when: on_failure
    name: "gtkdoc-testing-_${CI_COMMIT_REF_NAME}"
    paths:
      - "${CI_PROJECT_DIR}/tests/test-suite.log"

# meson

meson-build:
  stage: build
  script:
    - meson --prefix /usr _build .
    - ninja -C _build
    - meson test -C _build || true
  except:
    - tags

# common

pages:
  stage: deploy
  only:
    - master
  script:
    - ./autogen.sh --prefix=/usr
    - make
    - make -C tests coverage
    - mkdir -p public/
    - mv tests/htmlcov public/
  artifacts:
    paths:
      - public