Commit d004c748 authored by Shivani Bhardwaj's avatar Shivani Bhardwaj

Merge branch 'compact-gitlab-ci' into 'hamara-sugam'

Compact gitlab ci See merge request !109
parents 127bcb67 b64b9d28
Pipeline #1543 passed with stages
in 3 minutes 12 seconds
# Defines stages each corresponding to a separate hamara-package
stages:
- calamares-settings-hamara
- grub-theme-hamara
- hamara-keyring-2016.5
- hamara-live
- hamara-sugam-config
- hamara-wallpapers
- hamara-welcome
- lightdm-webkit-greeter
- lightdm-webkit-greeter-hamara
- materia-gtk-theme
- paper-icon-theme
- plymouth-theme-hamara
- source-sans-pro
- trigger-watchdog
# These steps will run before each build.
# They are included here to avoid repetition of same code on later stages.
# similar to a macro
before_script:
- export DEBIAN_FRONTEND=noninteractive
- echo "Preparing the container for builds"
- sudo apt update
- sudo apt-get -y upgrade
- sudo apt-get -y dist-upgrade
- sudo apt-get -y install apt-utils figlet dpkg-dev fakeroot git-buildpackage lintian pristine-tar
- figlet BUILD
.build_template: &build_definition
allow_failure: true
dependencies: []
script:
- cd packages/$CI_JOB_STAGE
- export BUILD_DEPENDS=`perl -ne 'next if /^#/; $p=(s/^Build-Depends:\s*/ / or (/^ / and $p)); s/,|\n|\([^)]+\)//mg; print if $p' < debian/control`
- sudo apt-get install -y --no-install-recommends $BUILD_DEPENDS
- sudo apt-get -y autoremove --purge
- sudo apt-get clean
- sudo rm -rf /var/lib/apt/lists/*
- dpkg-buildpackage -us -uc
#copy the contents of the package to the incoming directory
- echo "Deploying packages to repositories"
- mkdir $CI_JOB_STAGE
- cp -r ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo $CI_JOB_STAGE
- scp -r ./$CI_JOB_STAGE root@aptly:/opt/custom_packages/
artifacts:
paths:
- packages/*.deb
- packages/*.dsc
- packages/*.buildinfo
- packages/*.changes
- packages/*.tar.*
expire_in: 1 day
build-calamares-settings-hamara:
stage: calamares-settings-hamara
<<: *build_definition
build-grub-theme-hamara:
stage: grub-theme-hamara
<<: *build_definition
build-hamara-keyring-2016.5:
stage: hamara-keyring-2016.5
<<: *build_definition
build-hamara-live:
stage: hamara-live
<<: *build_definition
build-hamara-sugam-config:
stage: hamara-sugam-config
<<: *build_definition
build-hamara-wallpapers:
stage: hamara-wallpapers
<<: *build_definition
build-hamara-welcome:
stage: hamara-welcome
<<: *build_definition
build-lightdm-webkit-greeter:
stage: lightdm-webkit-greeter
<<: *build_definition
build-lightdm-webkit-greeter-hamara:
stage: lightdm-webkit-greeter-hamara
<<: *build_definition
build-materia-gtk-theme:
stage: materia-gtk-theme
<<: *build_definition
build-paper-icon-theme:
stage: paper-icon-theme
<<: *build_definition
build-plymouth-theme-hamara:
stage: plymouth-theme-hamara
<<: *build_definition
build-source-sans-pro:
stage: source-sans-pro
<<: *build_definition
execute-trigger-watchdog:
stage: trigger-watchdog
script:
- date > .latestwatch
- scp .latestwatch root@aptly:/opt/watchdog/watches/
......@@ -2,7 +2,10 @@ Source: materia-gtk-theme
Section: misc
Priority: optional
Maintainer: I Sagar <sagar@hamaralinux.org>
Build-Depends: debhelper (>= 10),libglib2.0-dev,libxml2-utils
Build-Depends:
debhelper (>= 10),
libglib2.0-dev,
libxml2-utils,
Standards-Version: 4.1.3
Homepage: https://github.com/nana-4/materia-theme
Vcs-Git: https://github.com/nana-4/materia-theme.git
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment