Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wireplumber
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pkg
wireplumber
Commits
91c35b2e
Commit
91c35b2e
authored
4 years ago
by
George Kiagiadakis
Browse files
Options
Downloads
Patches
Plain Diff
ci: switch to ci-templates and enable running tests
parent
3c8d7da8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+75
-16
75 additions, 16 deletions
.gitlab-ci.yml
with
75 additions
and
16 deletions
.gitlab-ci.yml
+
75
−
16
View file @
91c35b2e
image
:
registry.freedesktop.org/pipewire/pipewire/fedora:31
stages
:
-
container
-
build
variables
:
variables
:
DEPENDENCIES
:
gtk-doc gobject-introspection-devel cmake gcc-c++
FDO_UPSTREAM_REPO
:
'
pipewire/wireplumber'
# change to build against a different tag/commit/branch of pipewire
PIPEWIRE_HEAD
:
'
0.3.5'
build
:
# ci-templates as of May 1st 2020
.templates_sha
:
&templates_sha
59de540b620c45739871d1a073d76d5521989d11
include
:
-
project
:
'
freedesktop/ci-templates'
ref
:
*templates_sha
file
:
'
/templates/fedora.yml'
.fedora
:
variables
:
# Update this tag when you want to trigger a rebuild
FDO_DISTRIBUTION_TAG
:
'
2020-05-18.1'
FDO_DISTRIBUTION_VERSION
:
'
32'
FDO_DISTRIBUTION_PACKAGES
:
>-
findutils
gcc
gcc-c++
git
meson
cmake
glib2-devel
gtk-doc
gobject-introspection-devel
dbus-devel
dbus-daemon
.build
:
before_script
:
before_script
:
-
dnf update -y --nogpgcheck && dnf install -y --nogpgcheck $DEPENDENCIES
# setup the environment
-
git clone https://gitlab.freedesktop.org/pipewire/pipewire.git
-
export BUILD_ID="$CI_JOB_NAME"
script
:
-
export PREFIX="$PWD/prefix-$BUILD_ID"
-
export PW_BUILD_DIR="$PWD/build-pipewire-$BUILD_ID"
# Build pipewire
# Build pipewire
-
cd pipewire
# Fedora also ships that, but without the test plugins that we need...
-
meson . _build --prefix=/usr
-
git clone --depth=1 --branch="$PIPEWIRE_HEAD"
https://gitlab.freedesktop.org/pipewire/pipewire.git
-
meson "$PW_BUILD_DIR" pipewire --prefix="$PREFIX"
-Dpipewire-alsa=false -Dpipewire-pulseaudio=false -Dpipewire-jack=false
-Dpipewire-alsa=false -Dpipewire-pulseaudio=false -Dpipewire-jack=false
-Djack=false -Dvulkan=false -Dgstreamer=false -Dbluez5=false -Dman=false
-Dalsa=false -Dv4l2=false -Djack=false -Dbluez5=false -Dvulkan=false
-Dvideotestsrc=true -Daudiotestsrc=true
-Dgstreamer=false -Dsystemd=false
-
ninja -C _build
-Ddocs=false -Dman=false -Dexamples=false -Dpw-cat=false
-
ninja -C _build install
-Dvideotestsrc=true -Daudiotestsrc=true -Dtest=true
-
cd ..
-
ninja -C "$PW_BUILD_DIR" install
# misc environment only for wireplumber
-
export WP_BUILD_DIR="$PWD/build-wireplumber-$BUILD_ID"
-
export XDG_RUNTIME_DIR="$(mktemp -p $PWD -d xdg-runtime-XXXXXX)"
-
export PKG_CONFIG_PATH="$(dirname $(find "$PREFIX" -name 'libpipewire-*.pc')):$PKG_CONFIG_PATH"
script
:
# Build wireplumber
# Build wireplumber
-
meson . _build --prefix=/usr
-
meson "$WP_BUILD_DIR" . --prefix="$PREFIX"
-
ninja -C _build
-
cd "$WP_BUILD_DIR"
-
ninja -C _build install
-
ninja
-
ninja test
-
ninja install
artifacts
:
name
:
wireplumber-$CI_COMMIT_SHA
when
:
on_failure
expire_in
:
2 weeks
paths
:
-
build-*/meson-logs
container_fedora
:
extends
:
-
.fedora
-
.fdo.container-build@fedora
stage
:
container
build_on_fedora
:
extends
:
-
.fedora
-
.fdo.distribution-image@fedora
-
.build
stage
:
build
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment