[pulseaudio-commits] [Git][pulseaudio/webrtc-audio-processing][master] ci: Add a gitlab-ci.yml

Arun Raghavan gitlab at gitlab.freedesktop.org
Mon Oct 26 19:10:56 UTC 2020



Arun Raghavan pushed to branch master at PulseAudio / webrtc-audio-processing


Commits:
593986ec by Arun Raghavan at 2020-10-26T14:58:04-04:00
ci: Add a gitlab-ci.yml

- - - - -


1 changed file:

- + .gitlab-ci.yml


Changes:

=====================================
.gitlab-ci.yml
=====================================
@@ -0,0 +1,62 @@
+# The build has two stages. The 'container' stage is used to build a Docker
+# container and push it to the project's container registry on fd.o GitLab.
+# This step is only run when the tag for the container changes, else it is
+# effectively a no-op. All of this infrastructure is inherited from the
+# wayland/ci-templates repository which is the recommended way to set up CI
+# infrastructure on fd.o GitLab.
+#
+# Once the container stage is done, we move on to the 'build' stage where we
+# run an autotools and meson build in parallel. Currently, tests are also run
+# as part of the build stage as there doesn't seem to be significant value to
+# splitting the stages at the moment.
+
+stages:
+  - container
+  - build
+
+variables:
+  # Update this tag when you want to trigger a rebuild the container in which
+  # CI runs, for example when adding new packages to FDO_DISTRIBUTION_PACKAGES.
+  # The tag is an arbitrary string that identifies the exact container
+  # contents.
+  FDO_DISTRIBUTION_TAG: '2020-10-26.1'
+  FDO_DISTRIBUTION_VERSION: '20.10'
+  FDO_UPSTREAM_REPO: 'pulseaudio/webrtc-audio-processing'
+  UBUNTU_IMAGE: "$CI_REGISTRY_IMAGE/ubuntu/$FDO_DISTRIBUTION_VERSION:$FDO_DISTRIBUTION_TAG"
+
+include:
+  # We pull templates from master to avoid the overhead of periodically
+  # scanning for changes upstream. This does means builds might occasionally
+  # break due to upstream changing things, so if you see unexpected build
+  # failures, this might be one cause.
+  - project: 'freedesktop/ci-templates'
+    ref: 'master'
+    file: '/templates/ubuntu.yml'
+
+build-container:
+  extends: .fdo.container-build at ubuntu
+  stage: container
+  variables:
+    GIT_STRATEGY: none # no need to pull the whole tree for rebuilding the image
+
+    # Remember to update FDO_DISTRIBUTION_TAG when modifying this package list!
+    # Otherwise the changes won't have effect since an old container image will
+    # be used.
+    FDO_DISTRIBUTION_PACKAGES: >-
+      g++
+      gcc
+      libabsl-dev
+      meson
+      ninja-build
+      python3-setuptools
+
+build:
+  stage: build
+  image: $UBUNTU_IMAGE
+  script:
+    - meson build
+    - cd build
+    - ninja
+  artifacts:
+    paths:
+      - build/



View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing/-/commit/593986ec5ebba49c3110e9f77a3be290ce0db2c2

-- 
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing/-/commit/593986ec5ebba49c3110e9f77a3be290ce0db2c2
You're receiving this email because of your account on gitlab.freedesktop.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-commits/attachments/20201026/0b1b87a2/attachment-0001.htm>


More information about the pulseaudio-commits mailing list