summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 42e02052ff83f29cba654b5d5ca1d7aa16fddc2d (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
57
58
59
60
61
stages:
  - style-check
  - build
  - test

variables:
  FEDORA_IMG: registry.freedesktop.org/ruff/wocky/master:v1
  DEBIAN_IMG: registry.freedesktop.org/ruff/wocky/debtest:v1
  WOCKY_DEBUG: all
  #G_MESSAGES_DEBUG: all

.default:
  before_script:
    - bash autogen.sh
  cache:
    key: "$CI_JOB_IMAGE:$CI_COMMIT_SHA"
    untracked: true


style-check:
  image: $FEDORA_IMG
  extends: .default
  stage: style-check
  script:
    - make -C wocky check-local

fedora-x86_64-build:
  image: $FEDORA_IMG
  extends: .default
  stage: build
  script:
    - make

fedora-x86_64-test:
  image: $FEDORA_IMG
  stage: test
  extends: .default
  script:
    - make check
  artifacts:
    when: always
    paths:
      - "tests/test-report.xml"

debian-x86_64-build:
  image: $DEBIAN_IMG
  extends: .default
  stage: build
  script:
    - make

debian-x86_64-test:
  image: $DEBIAN_IMG
  stage: test
  extends: .default
  script:
    - make check
  artifacts:
    when: always
    paths:
      - "tests/test-report.xml"