summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: f3ba2d76992b4ad9f712e8992d1ac01086edb6a5 (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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
stages:
  - style-check
  - build
  - test

variables:
  FEDORA_IMG: registry.freedesktop.org/telepathy/wocky/master:v1
  DEBIAN_IMG: registry.freedesktop.org/telepathy/wocky/debtest:v1
  DEBSTB_IMG: registry.freedesktop.org/telepathy/wocky/debstbl:v1
  SUSELP_IMG: registry.freedesktop.org/telepathy/wocky/osuselp:v1
  SUSETW_IMG: registry.freedesktop.org/telepathy/wocky/osusetw:v1
  WOCKY_DEBUG: all
  #G_MESSAGES_DEBUG: all

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

.defbuild:
  extends: .default
  stage: build
  script:
    - make

.deftest:
  extends: .default
  stage: test
  script:
    - make check
  artifacts:
    when: always
    paths:
      - "tests/test-old-report.xml"
      - "tests/test-new-report.xml"

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

fedora-x86_64-build:
  image: $FEDORA_IMG
  extends: .defbuild

fedora-x86_64-test:
  image: $FEDORA_IMG
  extends: .deftest

debian-x86_64-build:
  image: $DEBIAN_IMG
  extends: .defbuild

debian-x86_64-test:
  image: $DEBIAN_IMG
  extends: .deftest

opensuse-x86_64-build:
  image: $SUSETW_IMG
  extends: .defbuild

opensuse-x86_64-test:
  image: $SUSETW_IMG
  extends: .deftest

debian-stable-x86_64-build:
  image: $DEBSTB_IMG
  extends: .defbuild

debian-stable-x86_64-test:
  image: $DEBSTB_IMG
  extends: .deftest

opensuse-stable-x86_64-build:
  image: $SUSELP_IMG
  extends: .defbuild

opensuse-stable-x86_64-test:
  image: $SUSELP_IMG
  extends: .deftest