2020-01-13 10:35:34 +00:00
|
|
|
include:
|
|
|
|
- 'https://source.puri.sm/Librem5/librem5-ci/raw/master/librem5-pipeline-definitions.yml'
|
|
|
|
|
2020-01-13 10:33:42 +00:00
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
- test
|
2020-01-13 10:35:34 +00:00
|
|
|
- package
|
|
|
|
- test-package
|
2020-01-13 10:33:42 +00:00
|
|
|
|
2018-07-27 08:06:04 +00:00
|
|
|
variables:
|
2020-05-12 09:36:49 +00:00
|
|
|
DEPS: build-essential git
|
2018-07-27 08:06:04 +00:00
|
|
|
WANT_BUILD_DEPS: "true"
|
2020-05-12 09:36:49 +00:00
|
|
|
IMAGE: debian:bullseye
|
2018-07-27 08:06:04 +00:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
- export DEBIAN_FRONTEND=noninteractive
|
|
|
|
- apt-get -y update
|
2020-05-12 09:36:49 +00:00
|
|
|
- apt-get -y build-dep .
|
|
|
|
- apt-get -y install $DEPS
|
2018-07-27 08:06:04 +00:00
|
|
|
- ulimit -c unlimited
|
|
|
|
|
|
|
|
.tags: &tags
|
|
|
|
tags:
|
|
|
|
- librem5
|
|
|
|
|
|
|
|
build:native:
|
|
|
|
<<: *tags
|
2020-05-12 09:36:49 +00:00
|
|
|
image: $IMAGE
|
2018-07-27 08:06:04 +00:00
|
|
|
stage: build
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- _build
|
|
|
|
script:
|
|
|
|
- meson --werror . _build
|
|
|
|
- ninja -C _build
|
2020-07-03 08:20:39 +00:00
|
|
|
except:
|
|
|
|
variables:
|
|
|
|
- $PKG_ONLY == "1"
|
2018-07-27 08:06:04 +00:00
|
|
|
|
|
|
|
test:native:
|
|
|
|
<<: *tags
|
2020-05-12 09:36:49 +00:00
|
|
|
image: $IMAGE
|
2018-07-27 08:06:04 +00:00
|
|
|
stage: test
|
|
|
|
dependencies:
|
|
|
|
- build:native
|
|
|
|
script:
|
|
|
|
- export LC_ALL=C.UTF-8
|
|
|
|
- xvfb-run ninja -C _build test
|
2020-07-03 08:20:39 +00:00
|
|
|
except:
|
|
|
|
variables:
|
|
|
|
- $PKG_ONLY == "1"
|
2018-07-27 08:06:04 +00:00
|
|
|
|
2020-01-13 10:35:34 +00:00
|
|
|
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
|
|
|
|
|