The `.ci/container/.gitlab-ci.yml` file is not specific to container builds, so move it up a level to .ci/ to better reflect its more general role. Signed-off-by: Deborah Brouwer <deborah.brouwer@collabora.com>
56 lines
1.2 KiB
YAML
56 lines
1.2 KiB
YAML
workflow:
|
|
rules:
|
|
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
|
|
- if: $CI_PIPELINE_SOURCE == 'push'
|
|
|
|
variables:
|
|
DEBIAN_FRONTEND: noninteractive
|
|
CI_TEMPLATES_COMMIT: &ci-templates-commit ea3f77641d91765396beba192b8defd3085fa343
|
|
FDO_UPSTREAM_REPO: "drm-hwcomposer/drm-hwcomposer"
|
|
|
|
include:
|
|
- project: 'freedesktop/ci-templates'
|
|
ref: *ci-templates-commit
|
|
file:
|
|
- '/templates/ubuntu.yml'
|
|
- local: '.ci/.gitlab-ci.yml'
|
|
- local: '.ci/image-tags.yml'
|
|
|
|
stages:
|
|
- container
|
|
- build
|
|
- tidy
|
|
- style
|
|
|
|
build:
|
|
stage: build
|
|
extends:
|
|
.use-ubuntu/x86_64_hwc
|
|
script:
|
|
- ln -s "${CI_PROJECT_DIR}" "/aospless/src"
|
|
- make -C /aospless install
|
|
- mkdir -p "${CI_PROJECT_DIR}/install/arm64"
|
|
- cp -r /aospless/install/* "${CI_PROJECT_DIR}/install/arm64"
|
|
artifacts:
|
|
paths:
|
|
- "${CI_PROJECT_DIR}/install/arm64"
|
|
expire_in: 1 week
|
|
|
|
tidy:
|
|
stage: tidy
|
|
extends:
|
|
.use-ubuntu/x86_64_hwc
|
|
script:
|
|
- cp -r /aospless ../
|
|
- make -j$(nproc) -k -f "${CI_PROJECT_DIR}/.ci/Makefile"
|
|
|
|
checkstyle:
|
|
stage: style
|
|
extends:
|
|
.use-ubuntu/x86_64_hwc
|
|
script: "./.ci/.gitlab-ci-checkcommit.sh"
|
|
artifacts:
|
|
when: on_failure
|
|
untracked: true
|
|
tags:
|
|
- placeholder-job
|