diff options
author | Simon McVittie <smcv@collabora.com> | 2022-09-04 15:09:37 +0100 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2022-09-05 09:18:53 +0100 |
commit | 93692ffb1c39277ba2e9da67e863edfd30f7604e (patch) | |
tree | e3ca78b007395ff7fc1b8330b98cf7f05dc3e8d2 | |
parent | 9dc0b3e753f4102414319fece35575fc2d8c68bd (diff) | |
download | dbus-python-93692ffb1c39277ba2e9da67e863edfd30f7604e.tar.gz |
Add Gitlab-CI
Signed-off-by: Simon McVittie <smcv@collabora.com>
-rw-r--r-- | .editorconfig | 2 | ||||
-rw-r--r-- | .gitlab-ci.yml | 34 |
2 files changed, 35 insertions, 1 deletions
diff --git a/.editorconfig b/.editorconfig index 8faf02b..05bbe50 100644 --- a/.editorconfig +++ b/.editorconfig @@ -10,7 +10,7 @@ end_of_line = lf insert_final_newline = true tab_width = 8 -[{*.py,*.sh,meson.build}] +[{*.py,*.sh,*.yml,meson.build}] indent_size = 4 indent_style = space diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..c063317 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,34 @@ +# Copyright © 2015-2022 Collabora Ltd. +# SPDX-License-Identifier: MIT + +image: debian:bullseye-slim + +stages: + - build + +build: + stage: build + image: "debian:bullseye-slim" + script: + - | + apt-get -y update + apt-get -y install \ + build-essential \ + dbus-daemon \ + libdbus-1-dev \ + libglib2.0-dev \ + meson \ + pkg-config \ + python3 \ + ${NULL+} + meson _build + meson compile -C _build -v + meson test -C _build -v + +reuse: + stage: build + image: + name: fsfe/reuse:latest + entrypoint: [""] + script: + - reuse lint |