Skip to content

Commit

Permalink
feat(cd): provide CD pipelines
Browse files Browse the repository at this point in the history
This follows !1153.
  • Loading branch information
TallFurryMan committed Apr 2, 2024
1 parent eb23464 commit 597896e
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 33 deletions.
5 changes: 0 additions & 5 deletions .craft.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,4 @@
# SPDX-License-Identifier: CC0-1.0

[BlueprintSettings]
libs/indiserver.version=master
libs/indiserver-3rdparty.version=master
libs/indiserver-3rdparty-libraries.version=master
libs/indiclient.version=master
kde/applications/kstars.version=master
kde/applications/kstars.packageAppx = True
80 changes: 52 additions & 28 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,67 @@
# It uses both KDE CI and custom image until tests are stabilised in the KDE CI image
# Build dependencies for the custom image are packaged into image definition 'docker/Dockerfile'

stages:
- build
- test
#- test-unstable
- deploy

include:
- project: sysadmin/ci-utilities
file:
- /gitlab-templates/linux.yml
- /gitlab-templates/windows.yml
- /gitlab-templates/android.yml
- /gitlab-templates/craft-appimage.yml
- /gitlab-templates/craft-windows-x86-64.yml
- /gitlab-templates/craft-macos-x86-64.yml
- /gitlab-templates/craft-windows-appx-qt5.yml
# - /gitlab-templates/reuse-lint.yml
# - /gitlab-templates/flatpak.yml

# Android CI is not ready yet
android_qt515:
allow_failure: true
rules:
- when: manual
allow_failure: true

stages:
- build
- test
#- test-unstable
# Craft recipes run as nightly on master
craft_appimage_qt515_x86_64:
needs:
- suse_tumbleweed_qt515
- build-and-test-stable
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
when: always
- when: manual
allow_failure: true

craft_windows_qt515_x86_64:
needs:
- windows_qt515
- build-and-test-stable
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
when: always
- when: manual
allow_failure: true

craft_macos_x86_64:
needs:
- build-and-test-stable
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
allow_failure: true # MacOS build is unstable
when: always
- when: manual
allow_failure: true

# Publishing to Windows store is being discussed
microsoftstore_qt515:
rules:
- when: manual
allow_failure: true

# This is the custom build we use until tests are operational in the KDE CI image
.custom_build:
Expand Down Expand Up @@ -62,6 +106,8 @@ build:
build-and-test-stable:
stage: test
extends: .custom_build
needs:
- build
timeout: 3 hours
only:
- merge_requests
Expand Down Expand Up @@ -116,26 +162,4 @@ build-and-test-stable:
# reports:
# junit:
# ./junit_result.unstable.xml
#
# build-appimage:
# stage: test
# interruptible: true
# allow_failure: true
# only:
# - merge_requests
# before_script:
# - python3 -m pip install appimage-builder
# - wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O /opt/appimagetool
# - chmod +x /opt/appimagetool
# - pushd /opt/; /opt/appimagetool --appimage-extract
# - mv /opt/squashfs-root /opt/appimagetool.AppDir
# - ln -s /opt/appimagetool.AppDir/AppRun /usr/local/bin/appimagetool
# - popd
# script:
# - *build_recipe
# - appimage-builder --recipe ../appimage/appimage-builder.yml --skip-test
# artifacts:
# expire_in: 1 week
# paths:
# - 'kstars-build/*.AppImage*'
#
#

0 comments on commit 597896e

Please sign in to comment.