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"
|
2021-01-20 09:53:17 +00:00
|
|
|
IMAGE: pureos/byzantium
|
2020-12-04 17:39:53 +00:00
|
|
|
COMMON_BUILD_OPTS: --werror
|
2018-07-27 08:06:04 +00:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
- export DEBIAN_FRONTEND=noninteractive
|
|
|
|
- apt-get -y update
|
2020-10-30 17:29:05 +00:00
|
|
|
- apt-get -y install $DEPS wget ca-certificates gnupg
|
|
|
|
- echo "deb http://ci.puri.sm/ bullseyeci main" > /etc/apt/sources.list.d/ci.list
|
|
|
|
- wget -O- https://ci.puri.sm/ci-repo.key | apt-key add -
|
|
|
|
- apt-get -y update
|
2020-05-12 09:36:49 +00:00
|
|
|
- apt-get -y build-dep .
|
2018-07-27 08:06:04 +00:00
|
|
|
- ulimit -c unlimited
|
|
|
|
|
|
|
|
.tags: &tags
|
|
|
|
tags:
|
|
|
|
- librem5
|
|
|
|
|
2020-12-04 17:39:53 +00:00
|
|
|
.build_step: &build_step
|
|
|
|
script:
|
|
|
|
- 'echo "Build opts: ${BUILD_OPTS}"'
|
|
|
|
- meson ${BUILD_OPTS} . _build
|
|
|
|
- ninja -C _build
|
|
|
|
|
2018-07-27 08:06:04 +00:00
|
|
|
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
|
2020-12-04 17:39:53 +00:00
|
|
|
variables:
|
|
|
|
BUILD_OPTS: -Dgtk_doc=true ${COMMON_BUILD_OPTS}
|
|
|
|
<<: *build_step
|
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-12-04 17:39:53 +00:00
|
|
|
build-gtkdoc:
|
|
|
|
<<: *tags
|
|
|
|
image: $IMAGE
|
|
|
|
stage: test
|
|
|
|
dependencies:
|
|
|
|
- build:native
|
|
|
|
<<: *build_step
|
|
|
|
script:
|
|
|
|
- ninja -C _build calls-doc
|
|
|
|
- mv _build/doc/html/ _reference/
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- _reference
|
|
|
|
except:
|
|
|
|
variables:
|
|
|
|
- $PKG_ONLY == "1"
|
|
|
|
|
2020-11-09 09:37:12 +00:00
|
|
|
check-po:
|
|
|
|
<<: *tags
|
|
|
|
image: $IMAGE
|
|
|
|
stage: test
|
|
|
|
dependencies:
|
|
|
|
- build:native
|
|
|
|
before_script:
|
|
|
|
- apt-get -y update
|
|
|
|
- apt-get -y install intltool
|
|
|
|
script:
|
|
|
|
# barf on untranslated C files. Seems intltool
|
|
|
|
# can't be told to exit with non-zero exit status
|
|
|
|
# in this case
|
|
|
|
- cd po/
|
|
|
|
- intltool-update -m 2>&1 | grep -qs '/.*\.c' && { intltool-update -m; exit 1; } || exit 0
|
|
|
|
except:
|
|
|
|
variables:
|
|
|
|
- $PKG_ONLY == "1"
|
|
|
|
|
2020-01-13 10:35:34 +00:00
|
|
|
package:deb-debian-buster:
|
|
|
|
extends: .l5-build-debian-package
|
2021-01-19 10:03:49 +00:00
|
|
|
before_script: []
|
2020-01-13 10:35:34 +00:00
|
|
|
|
|
|
|
package:deb-debian-buster:arm64:
|
|
|
|
tags:
|
|
|
|
- librem5:arm64
|
|
|
|
extends: .l5-build-debian-package
|
2021-01-19 10:03:49 +00:00
|
|
|
before_script: []
|
2020-01-13 10:35:34 +00:00
|
|
|
|
|
|
|
autopkgtest-debian-buster-package:
|
|
|
|
dependencies:
|
|
|
|
- package:deb-debian-buster
|
|
|
|
extends: .l5-autopkgtest-debian-package
|
2021-01-19 10:03:49 +00:00
|
|
|
before_script: []
|
2020-01-13 10:35:34 +00:00
|
|
|
|
|
|
|
lintian-debian-buster-package:
|
|
|
|
dependencies:
|
|
|
|
- package:deb-debian-buster
|
|
|
|
extends: .l5-lintian-debian-package
|
2021-01-19 10:03:49 +00:00
|
|
|
before_script: []
|
2020-01-13 10:35:34 +00:00
|
|
|
|