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:
|
2018-08-03 14:37:20 +00:00
|
|
|
DEPS: build-essential git modemmanager-dev libmm-glib-dev
|
2018-07-27 08:06:04 +00:00
|
|
|
WANT_BUILD_DEPS: "true"
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- export DEBIAN_FRONTEND=noninteractive
|
|
|
|
- apt-get -y update
|
|
|
|
- apt-get -y install wget ca-certificates gnupg eatmydata
|
|
|
|
- echo "deb http://ci.puri.sm/ scratch librem5" > /etc/apt/sources.list.d/ci.list
|
|
|
|
- wget -O- https://ci.puri.sm/ci-repo.key | apt-key add -
|
|
|
|
- eatmydata apt-get -y update
|
|
|
|
- eatmydata apt-get -y build-dep .
|
|
|
|
- eatmydata apt-get -y install $DEPS
|
|
|
|
- ulimit -c unlimited
|
|
|
|
|
|
|
|
.tags: &tags
|
|
|
|
tags:
|
|
|
|
- librem5
|
|
|
|
|
|
|
|
build:native:
|
|
|
|
<<: *tags
|
|
|
|
stage: build
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- _build
|
|
|
|
script:
|
|
|
|
- meson --werror . _build
|
|
|
|
- ninja -C _build
|
|
|
|
|
|
|
|
test:native:
|
|
|
|
<<: *tags
|
|
|
|
stage: test
|
|
|
|
dependencies:
|
|
|
|
- build:native
|
|
|
|
script:
|
|
|
|
- export LC_ALL=C.UTF-8
|
|
|
|
- xvfb-run ninja -C _build test
|
|
|
|
|
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
|
|
|
|
|