.gitlab-ci.yml 1.14 KB
Newer Older
1
2
3
include:
 - 'https://source.puri.sm/Librem5/librem5-ci/raw/master/librem5-pipeline-definitions.yml'

Guido Gunther's avatar
Guido Gunther committed
4
5
6
stages:
 - build
 - test
7
8
 - package
 - test-package
Guido Gunther's avatar
Guido Gunther committed
9

10
variables:
Guido Gunther's avatar
Guido Gunther committed
11
  DEPS: build-essential git
12
  WANT_BUILD_DEPS: "true"
Guido Gunther's avatar
Guido Gunther committed
13
  IMAGE: debian:bullseye
14
15
16
17

before_script:
  - export DEBIAN_FRONTEND=noninteractive
  - apt-get -y update
Guido Gunther's avatar
Guido Gunther committed
18
19
  - apt-get -y build-dep .
  - apt-get -y install $DEPS
20
21
22
23
24
25
26
27
  - ulimit -c unlimited

.tags: &tags
  tags:
    - librem5

build:native:
  <<: *tags
Guido Gunther's avatar
Guido Gunther committed
28
  image: $IMAGE
29
30
31
32
33
34
35
36
37
38
  stage: build
  artifacts:
    paths:
      - _build
  script:
    - meson --werror . _build
    - ninja -C _build

test:native:
  <<: *tags
Guido Gunther's avatar
Guido Gunther committed
39
  image: $IMAGE
40
41
42
43
44
45
46
  stage: test
  dependencies:
    - build:native
  script:
    - export LC_ALL=C.UTF-8
    - xvfb-run ninja -C _build test

47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package:deb-debian-buster:
  extends: .l5-build-debian-package

package:deb-debian-buster:arm64:
  tags:
    - librem5:arm64
  extends: .l5-build-debian-package

autopkgtest-debian-buster-package:
  dependencies:
    - package:deb-debian-buster
  extends: .l5-autopkgtest-debian-package

lintian-debian-buster-package:
  dependencies:
    - package:deb-debian-buster
  extends: .l5-lintian-debian-package