summaryrefslogtreecommitdiff
path: root/convey.yaml
blob: c29f62c138dc5b0dd0bef508350d8cb85a3359d4 (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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
---
environment:
  - BUILD_NUMBER
  - REPOSITORY=pidgin/builders
  - REGISTRY=docker.io
  - DOCS_BUILD_IMAGE=${REGISTRY}/${REPOSITORY}:debian-bookworm-amd64

tasks:
  import:
    type: docker/import
    files: .:.

  build:
    type: docker/run
    image: ${REGISTRY}/${REPOSITORY}:${TARGET}

  clean:
    type: convey/clean
    files:
      - appimage-x86_64
      - clang
      - debian-bookworm-amd64
      - fedora-36-amd64
      - fedora-37-amd64
      - scanbuild
      - ubuntu-kinetic-amd64

  docs-clean:
    type: convey/clean
    files:
      - finch3-docs
      - pidgin3-docs
      - purple3-docs

  docs-build:
    type: docker/run
    image: ${DOCS_BUILD_IMAGE}
    workdir: ${CONVEY_WORKSPACE}
    script:
      - set -ex
      - meson -Ddoc=true build-docs
      - ninja -C build-docs doc

  docs-export:
    type: docker/export
    files:
      - build-docs/doc/reference/finch/finch/:finch3-docs
      - build-docs/doc/reference/libpurple/libpurple/:purple3-docs
      - build-docs/doc/reference/pidgin/pidgin/:pidgin3-docs

  export:
    type: docker/export
    files: build-${TARGET}:${TARGET}

  bare-export:
    type: docker/export
    files: ${TARGET}:${TARGET}

plans:
  pidgin3-appimage-x86_64:
    environment:
      - TARGET=appimage-x86_64
      - RECIPE=Pidgin3
      - CONFIGURE_ARGS=-Dconsoleui=False
    stages:
      - tasks: [import, build, bare-export]

  clang:
    environment: [TARGET=clang]
    stages:
      - tasks: [import, build]
      - tasks: [export]
        run: always

  clean:
    stages:
      - tasks: [clean, docs-clean]

  debian-bookworm-amd64:
    environment: [TARGET=debian-bookworm-amd64]
    stages:
      - tasks: [import, build]
      - tasks: [export]
        run: always

  docs:
    stages:
      - tasks: [docs-clean, import, docs-build, docs-export]

  fedora-36-amd64:
    environment: [TARGET=fedora-36-amd64]
    stages:
      - tasks: [import, build]
      - tasks: [export]
        run: always

  fedora-37-amd64:
    environment: [TARGET=fedora-37-amd64]
    stages:
      - tasks: [import, build]
      - tasks: [export]
        run: always

  scanbuild:
    environment: [TARGET=scanbuild]
    stages:
      - tasks: [import, build]
      - tasks: [export]
        run: always

  ubuntu-kinetic-amd64:
    environment: [TARGET=ubuntu-kinetic-amd64]
    stages:
      - tasks: [import, build]
      - tasks: [export]
        run: always