diff options
author | Alberto Fanjul <albertofanjul@gmail.com> | 2018-07-25 07:33:38 +0200 |
---|---|---|
committer | Alberto Fanjul <albertofanjul@gmail.com> | 2018-07-25 08:01:24 +0200 |
commit | fb2c1d4604821fa451fb6e79e1badf0f2439d381 (patch) | |
tree | 09d4a7e3bb640b8999fc2d66e6b970e2ff418523 /.gitlab-ci.yml | |
parent | 113bfa98119315193b489b6d8e83db4641ea4b9d (diff) | |
download | glade-fb2c1d4604821fa451fb6e79e1badf0f2439d381.tar.gz |
gitlabci: Add CI setup
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..20cb943a --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,60 @@ +stages: +- test +- review + +variables: + BUNDLE: "glade-git.flatpak" + +flatpak: + image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master + stage: test + + variables: + # Replace with your manifest path + MANIFEST_PATH: "org.gnome.Glade.json" + RUNTIME_REPO: "https://sdk.gnome.org/gnome-nightly.flatpakrepo" + FLATPAK_MODULE: "glade" + CONFIGURE_ARGS: "--disable-man-pages" + DBUS_ID: "org.gnome.Glade" + + script: + - flatpak-builder --stop-at=${FLATPAK_MODULE} app ${MANIFEST_PATH} + - flatpak build app ./autogen.sh --prefix=/app --libdir=/app/lib ${CONFIGURE_ARGS} + - flatpak build app make install + - flatpak-builder --finish-only --repo=repo app ${MANIFEST_PATH} + #- xvfb-run -a -s "-screen 0 1024x768x24" flatpak build app make check + - flatpak build-bundle repo ${BUNDLE} --runtime-repo=${RUNTIME_REPO} ${DBUS_ID} + + artifacts: + paths: + - ${BUNDLE} + - config.log + expire_in: 30 days + + cache: + paths: + - .flatpak-builder/cache + +review: + stage: review + dependencies: + - flatpak + script: + - echo "Generating flatpak deployment" + artifacts: + paths: + - ${BUNDLE} + expire_in: 30 days + environment: + name: review/$CI_COMMIT_REF_NAME + url: https://gitlab.gnome.org/$CI_PROJECT_PATH/-/jobs/$CI_JOB_ID/artifacts/raw/${BUNDLE} + on_stop: stop_review + +stop_review: + stage: review + script: + - echo "Stopping flatpak deployment" + when: manual + environment: + name: review/$CI_COMMIT_REF_NAME + action: stop |