2019-03-19 08:04:39 +00:00
|
|
|
variables:
|
|
|
|
UPSTREAM_REPO: monado/monado
|
2019-04-09 16:07:14 +00:00
|
|
|
|
2019-03-19 08:04:39 +00:00
|
|
|
DEBIAN_VERSION: buster
|
2019-06-18 16:27:12 +00:00
|
|
|
DEBIAN_TAG: '2019-06-13.0'
|
2019-03-19 08:04:39 +00:00
|
|
|
DEBIAN_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_TAG
|
2019-06-18 16:27:12 +00:00
|
|
|
DEBIAN_DEBS: 'build-essential git cmake meson ninja-build doxygen graphviz libeigen3-dev curl patch python3 pkg-config libx11-dev libxxf86vm-dev libxrandr-dev libxcb-randr0-dev libhidapi-dev libwayland-dev libvulkan-dev glslang-dev glslang-tools libglvnd-dev libgl1-mesa-dev ca-certificates libusb-1.0-0-dev libuvc-dev libavcodec-dev libopencv-dev libudev-dev clang-format-7 codespell'
|
2019-03-19 08:04:39 +00:00
|
|
|
DEBIAN_EXEC: 'bash .gitlab-ci/build-openxr-openhmd.sh'
|
2019-04-09 16:07:14 +00:00
|
|
|
|
2019-06-19 17:06:19 +00:00
|
|
|
ARCH_TAG: '2019-06-19.0'
|
|
|
|
ARCH_PKGS: 'git gcc cmake meson ninja pkgconfig python3 diffutils patch doxygen graphviz eigen hidapi libxrandr mesa glslang vulkan-headers vulkan-icd-loader check glfw-x11 libusb opencv gtk3 ffmpeg'
|
2019-04-09 16:07:14 +00:00
|
|
|
ARCH_EXEC: 'bash .gitlab-ci/build-openxr-openhmd.sh'
|
|
|
|
ARCH_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/archlinux/rolling:$ARCH_TAG
|
2019-03-19 08:04:39 +00:00
|
|
|
|
|
|
|
include:
|
|
|
|
- project: 'wayland/ci-templates'
|
|
|
|
ref: c73dae8b84697ef18e2dbbf4fed7386d9652b0cd
|
|
|
|
file: '/templates/debian.yml'
|
2019-04-09 16:07:14 +00:00
|
|
|
- project: 'wayland/ci-templates'
|
|
|
|
ref: 96912c7331cbc6da41fbf22c4217aa541176f063
|
|
|
|
file: '/templates/arch.yml'
|
2019-03-19 08:04:39 +00:00
|
|
|
|
|
|
|
stages:
|
|
|
|
- container_prep
|
|
|
|
- build
|
2019-08-23 14:07:49 +00:00
|
|
|
- deploy
|
2019-03-19 08:04:39 +00:00
|
|
|
|
2019-04-09 16:07:14 +00:00
|
|
|
debian:container_prep:
|
2019-03-19 08:04:39 +00:00
|
|
|
extends: .debian@container-ifnot-exists
|
|
|
|
stage: container_prep
|
|
|
|
|
2019-04-09 16:07:14 +00:00
|
|
|
arch:container_prep:
|
|
|
|
extends: .arch@container-ifnot-exists
|
|
|
|
stage: container_prep
|
|
|
|
|
2019-06-18 16:27:12 +00:00
|
|
|
format-and-spellcheck:
|
|
|
|
stage: build
|
|
|
|
image: $DEBIAN_CONTAINER_IMAGE
|
|
|
|
script:
|
|
|
|
- scripts/format-and-spellcheck.sh
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- patches/
|
|
|
|
expire_in: 1 week
|
|
|
|
when: on_failure
|
|
|
|
|
2019-04-09 16:07:14 +00:00
|
|
|
debian:build-cmake:
|
|
|
|
stage: build
|
|
|
|
image: $DEBIAN_CONTAINER_IMAGE
|
|
|
|
script:
|
|
|
|
- mkdir build
|
|
|
|
- pushd build
|
|
|
|
- cmake -GNinja ..
|
|
|
|
- ninja
|
2019-08-23 14:07:49 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- build/doc/html/
|
2019-04-09 16:07:14 +00:00
|
|
|
|
|
|
|
arch:build-cmake:
|
2019-03-19 08:04:39 +00:00
|
|
|
stage: build
|
2019-04-12 17:53:10 +00:00
|
|
|
image: $ARCH_CONTAINER_IMAGE
|
2019-03-19 08:04:39 +00:00
|
|
|
script:
|
|
|
|
- mkdir build
|
|
|
|
- pushd build
|
|
|
|
- cmake -GNinja ..
|
|
|
|
- ninja
|
2019-08-23 14:07:49 +00:00
|
|
|
|
|
|
|
###
|
|
|
|
# Pages
|
|
|
|
###
|
|
|
|
pages:
|
|
|
|
stage: deploy
|
|
|
|
# only:
|
|
|
|
# - master
|
|
|
|
dependencies:
|
|
|
|
- debian:build-cmake
|
|
|
|
script:
|
|
|
|
- mv build/doc/html public
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|