diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..47b61015e04e72ab337c73c91af5e57557ce19db --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,115 @@ +# 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/ diff --git a/packages/materia-gtk-theme/debian/control b/packages/materia-gtk-theme/debian/control index d4a95c2d0c1830e1e39ff1168a037484270a308d..804d52e2b467270dcb5b89be701ff89a11e76fe7 100644 --- a/packages/materia-gtk-theme/debian/control +++ b/packages/materia-gtk-theme/debian/control @@ -2,7 +2,10 @@ Source: materia-gtk-theme Section: misc Priority: optional Maintainer: I Sagar -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