#/* # *.gitlab-ci.yml # * # * Copyright 2018 Raju Devidas # * # * This program is free software; you can redistribute it and/or modify # * it under the terms of the GNU General Public License as published by # * the Free Software Foundation; either version 2 of the License, or # * (at your option) any later version. # * # * This program is distributed in the hope that it will be useful, # * but WITHOUT ANY WARRANTY; without even the implied warranty of # * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # * GNU General Public License for more details. # * # * You should have received a copy of the GNU General Public License # * along with this program; if not, write to the Free Software # * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, # * MA 02110-1301, USA. # * # * # */ # Defines stages each corresponding to a separate hamara-package stages: - build-calamares-settings-hamara-amd64 - build-calamares-settings-hamara-i386 - build-grub-theme-hamara-amd64 - build-grub-theme-hamara-i386 - build-hamara-keyring-2016.5-amd64 - build-hamara-keyring-2016.5-i386 - build-hamara-live-amd64 - build-hamara-live-i386 - build-hamara-sugam-config-amd64 - build-hamara-sugam-config-i386 - build-hamara-wallpapers-amd64 - build-hamara-wallpapers-i386 - build-hamara-welcome-amd64 - build-hamara-welcome-i386 - build-lightdm-webkit-greeter-amd64 - build-lightdm-webkit-greeter-i386 - build-lightdm-webkit-greeter-hamara-amd64 - build-lightdm-webkit-greeter-hamara-i386 - build-materia-gtk-theme-amd64 - build-materia-gtk-theme-i386 - build-paper-icon-theme-amd64 - build-paper-icon-theme-i386 - build-plymouth-theme-hamara-amd64 - build-plymouth-theme-hamara-i386 - build-source-sans-pro-amd64 - build-source-sans-pro-i386 # 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" - apt update - apt-get -y upgrade - apt-get -y dist-upgrade - apt-get -y install apt-utils figlet dpkg-dev fakeroot git-buildpackage lintian pristine-tar - figlet BUILD #---------------------------------------------------------------------------------------------------------------- #amd64 build build-calamares-settings-hamara-amd64: stage: build-calamares-settings-hamara-amd64 image: name: rajudev/hamara-builder:amd64 allow_failure: true dependencies: [] script: - cd packages/calamares-settings-hamara/ - export BUILD_DEPENDS=`perl -ne 'next if /^#/; $p=(s/^Build-Depends:\s*/ / or (/^ / and $p)); s/,|\n|\([^)]+\)//mg; print if $p' < debian/control` - apt-get install -y --no-install-recommends $BUILD_DEPENDS - apt-get -y autoremove --purge - apt-get clean - rm -rf /var/lib/apt/lists/* - dpkg-buildpackage -us -uc - ls -al / # test the directory structure presence #copy the contents of the package to the incoming directory - echo "Deploying packages to repositories" - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/ artifacts: untracked: true expire_in: 1 day #i386 build build-calamares-settings-hamara-i386: stage: build-calamares-settings-hamara-i386 image: name: rajudev/hamara-builder:i386 allow_failure: true dependencies: [] script: - cd packages/calamares-settings-hamara/ - export BUILD_DEPENDS=`perl -ne 'next if /^#/; $p=(s/^Build-Depends:\s*/ / or (/^ / and $p)); s/,|\n|\([^)]+\)//mg; print if $p' < debian/control` - apt-get install -y --no-install-recommends $BUILD_DEPENDS - apt-get -y autoremove --purge - apt-get clean - rm -rf /var/lib/apt/lists/* - dpkg-buildpackage -us -uc - ls -al / # test the directory structure presence #copy the contents of the package to the incoming directory - echo "Deploying packages to repositories" - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/ artifacts: untracked: true expire_in: 1 day #---------------------------------------------------------------------------------------------------------------- #amd64 build build-grub-theme-hamara-amd64: stage: build-grub-theme-hamara-amd64 image: name: rajudev/hamara-builder:amd64 allow_failure: true dependencies: [] script: - cd packages/grub-theme-hamara/ - export BUILD_DEPENDS=`perl -ne 'next if /^#/; $p=(s/^Build-Depends:\s*/ / or (/^ / and $p)); s/,|\n|\([^)]+\)//mg; print if $p' < debian/control` - apt-get install -y --no-install-recommends $BUILD_DEPENDS - apt-get -y autoremove --purge - apt-get clean - rm -rf /var/lib/apt/lists/* - dpkg-buildpackage -us -uc - ls -al / # test the directory structure presence - echo "Deploying packages to repositories" - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/ artifacts: untracked: true expire_in: 1 day #i386 build build-grub-theme-hamara-i386: stage: build-grub-theme-hamara-i386 image: name: rajudev/hamara-builder:i386 allow_failure: true dependencies: [] script: - cd packages/grub-theme-hamara/ - export BUILD_DEPENDS=`perl -ne 'next if /^#/; $p=(s/^Build-Depends:\s*/ / or (/^ / and $p)); s/,|\n|\([^)]+\)//mg; print if $p' < debian/control` - apt-get install -y --no-install-recommends $BUILD_DEPENDS - apt-get -y autoremove --purge - apt-get clean - rm -rf /var/lib/apt/lists/* - dpkg-buildpackage -us -uc - ls -al / # test the directory structure presence - echo "Deploying packages to repositories" - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/ artifacts: untracked: true expire_in: 1 day #---------------------------------------------------------------------------------------------------------------- #amd64 build build-hamara-keyring-2016.5-amd64: stage: build-hamara-keyring-2016.5-amd64 image: name: rajudev/hamara-builder:amd64 allow_failure: true dependencies: [] script: - cd packages/hamara-keyring-2016.5/ - export BUILD_DEPENDS=`perl -ne 'next if /^#/; $p=(s/^Build-Depends:\s*/ / or (/^ / and $p)); s/,|\n|\([^)]+\)//mg; print if $p' < debian/control` - apt-get install -y --no-install-recommends $BUILD_DEPENDS - apt-get -y autoremove --purge - apt-get clean - rm -rf /var/lib/apt/lists/* - dpkg-buildpackage -us -uc - ls -al / # test the directory structure presence - echo "Deploying packages to repositories" - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/ artifacts: untracked: true expire_in: 1 day #i386 build build-hamara-keyring-2016.5-i386: stage: build-hamara-keyring-2016.5-i386 image: name: rajudev/hamara-builder:i386 allow_failure: true dependencies: [] script: - cd packages/hamara-keyring-2016.5/ - export BUILD_DEPENDS=`perl -ne 'next if /^#/; $p=(s/^Build-Depends:\s*/ / or (/^ / and $p)); s/,|\n|\([^)]+\)//mg; print if $p' < debian/control` - apt-get install -y --no-install-recommends $BUILD_DEPENDS - apt-get -y autoremove --purge - apt-get clean - rm -rf /var/lib/apt/lists/* - dpkg-buildpackage -us -uc - ls -al / # test the directory structure presence - echo "Deploying packages to repositories" - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/ artifacts: untracked: true expire_in: 1 day #---------------------------------------------------------------------------------------------------------------- #amd64 build build-hamara-live-amd64: stage: build-hamara-live-amd64 image: name: rajudev/hamara-builder:amd64 allow_failure: true dependencies: [] script: - cd packages/hamara-live/ - export BUILD_DEPENDS=`perl -ne 'next if /^#/; $p=(s/^Build-Depends:\s*/ / or (/^ / and $p)); s/,|\n|\([^)]+\)//mg; print if $p' < debian/control` - apt-get install -y --no-install-recommends $BUILD_DEPENDS - apt-get -y autoremove --purge - apt-get clean - rm -rf /var/lib/apt/lists/* - dpkg-buildpackage -us -uc - ls -al / # test the directory structure presence - echo "Deploying packages to repositories" - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/ artifacts: untracked: true expire_in: 1 day #i386 build build-hamara-live-i386: stage: build-hamara-live-i386 image: name: rajudev/hamara-builder:i386 allow_failure: true dependencies: [] script: - cd packages/hamara-live/ - export BUILD_DEPENDS=`perl -ne 'next if /^#/; $p=(s/^Build-Depends:\s*/ / or (/^ / and $p)); s/,|\n|\([^)]+\)//mg; print if $p' < debian/control` - apt-get install -y --no-install-recommends $BUILD_DEPENDS - apt-get -y autoremove --purge - apt-get clean - rm -rf /var/lib/apt/lists/* - dpkg-buildpackage -us -uc - ls -al / # test the directory structure presence - echo "Deploying packages to repositories" - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/ artifacts: untracked: true expire_in: 1 day #---------------------------------------------------------------------------------------------------------------- #amd64 build build-hamara-sugam-config-amd64: stage: build-hamara-sugam-config-amd64 image: name: rajudev/hamara-builder:amd64 allow_failure: true dependencies: [] script: - cd packages/hamara-sugam-config/ - export BUILD_DEPENDS=`perl -ne 'next if /^#/; $p=(s/^Build-Depends:\s*/ / or (/^ / and $p)); s/,|\n|\([^)]+\)//mg; print if $p' < debian/control` - apt-get install -y --no-install-recommends $BUILD_DEPENDS - apt-get -y autoremove --purge - apt-get clean - rm -rf /var/lib/apt/lists/* - dpkg-buildpackage -us -uc - ls -al / # test the directory structure presence - echo "Deploying packages to repositories" - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/ artifacts: untracked: true expire_in: 1 day #i386 build build-hamara-sugam-config-i386: stage: build-hamara-sugam-config-i386 image: name: rajudev/hamara-builder:i386 allow_failure: true dependencies: [] script: - cd packages/hamara-sugam-config/ - export BUILD_DEPENDS=`perl -ne 'next if /^#/; $p=(s/^Build-Depends:\s*/ / or (/^ / and $p)); s/,|\n|\([^)]+\)//mg; print if $p' < debian/control` - apt-get install -y --no-install-recommends $BUILD_DEPENDS - apt-get -y autoremove --purge - apt-get clean - rm -rf /var/lib/apt/lists/* - dpkg-buildpackage -us -uc - ls -al / # test the directory structure presence - echo "Deploying packages to repositories" - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/ artifacts: untracked: true expire_in: 1 day #---------------------------------------------------------------------------------------------------------------- #amd64 build build-hamara-wallpapers-amd64: stage: build-hamara-wallpapers-amd64 image: name: rajudev/hamara-builder:amd64 allow_failure: true dependencies: [] script: - cd packages/hamara-wallpapers/ - export BUILD_DEPENDS=`perl -ne 'next if /^#/; $p=(s/^Build-Depends:\s*/ / or (/^ / and $p)); s/,|\n|\([^)]+\)//mg; print if $p' < debian/control` - apt-get install -y --no-install-recommends $BUILD_DEPENDS - apt-get -y autoremove --purge - apt-get clean - rm -rf /var/lib/apt/lists/* - dpkg-buildpackage -us -uc - ls -al / # test the directory structure presence - echo "Deploying packages to repositories" - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/ artifacts: untracked: true expire_in: 1 day #i386 build build-hamara-wallpapers-i386: stage: build-hamara-wallpapers-i386 image: name: rajudev/hamara-builder:i386 allow_failure: true dependencies: [] script: - cd packages/hamara-wallpapers/ - export BUILD_DEPENDS=`perl -ne 'next if /^#/; $p=(s/^Build-Depends:\s*/ / or (/^ / and $p)); s/,|\n|\([^)]+\)//mg; print if $p' < debian/control` - apt-get install -y --no-install-recommends $BUILD_DEPENDS - apt-get -y autoremove --purge - apt-get clean - rm -rf /var/lib/apt/lists/* - dpkg-buildpackage -us -uc - ls -al / # test the directory structure presence - echo "Deploying packages to repositories" - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/ artifacts: untracked: true expire_in: 1 day #---------------------------------------------------------------------------------------------------------------- #amd64 build build-hamara-welcome-amd64: stage: build-hamara-welcome-amd64 image: name: rajudev/hamara-builder:amd64 allow_failure: true dependencies: [] script: - cd packages/hamara-welcome/ - export BUILD_DEPENDS=`perl -ne 'next if /^#/; $p=(s/^Build-Depends:\s*/ / or (/^ / and $p)); s/,|\n|\([^)]+\)//mg; print if $p' < debian/control` - apt-get install -y --no-install-recommends $BUILD_DEPENDS - apt-get -y autoremove --purge - apt-get clean - rm -rf /var/lib/apt/lists/* - dpkg-buildpackage -us -uc - ls -al / # test the directory structure presence - echo "Deploying packages to repositories" - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/ artifacts: untracked: true expire_in: 1 day #i386 build build-hamara-welcome-i386: stage: build-hamara-welcome-i386 image: name: rajudev/hamara-builder:i386 allow_failure: true dependencies: [] script: - cd packages/hamara-welcome - export BUILD_DEPENDS=`perl -ne 'next if /^#/; $p=(s/^Build-Depends:\s*/ / or (/^ / and $p)); s/,|\n|\([^)]+\)//mg; print if $p' < debian/control` - apt-get install -y --no-install-recommends $BUILD_DEPENDS - apt-get -y autoremove --purge - apt-get clean - rm -rf /var/lib/apt/lists/* - dpkg-buildpackage -us -uc - ls -al / # test the directory structure presence - echo "Deploying packages to repositories" - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/ artifacts: untracked: true expire_in: 1 day #---------------------------------------------------------------------------------------------------------------- #amd64 build build-lightdm-webkit-greeter-amd64: stage: build-lightdm-webkit-greeter-amd64 image: name: rajudev/hamara-builder:amd64 allow_failure: true dependencies: [] script: - cd packages/lightdm-webkit-greeter - export BUILD_DEPENDS=`perl -ne 'next if /^#/; $p=(s/^Build-Depends:\s*/ / or (/^ / and $p)); s/,|\n|\([^)]+\)//mg; print if $p' < debian/control` - apt-get install -y --no-install-recommends $BUILD_DEPENDS - apt-get -y install liblightdm-gobject-dev #additional dependency required to build lightdm-webkit-greeter - apt-get -y autoremove --purge - apt-get clean - rm -rf /var/lib/apt/lists/* - dpkg-buildpackage -us -uc - ls -al / # test the directory structure presence - echo "Deploying packages to repositories" - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/ artifacts: untracked: true expire_in: 1 day #i386 build build-lightdm-webkit-greeter-i386: stage: build-lightdm-webkit-greeter-i386 image: name: rajudev/hamara-builder:i386 allow_failure: true dependencies: [] script: - cd packages/lightdm-webkit-greeter - export BUILD_DEPENDS=`perl -ne 'next if /^#/; $p=(s/^Build-Depends:\s*/ / or (/^ / and $p)); s/,|\n|\([^)]+\)//mg; print if $p' < debian/control` - apt-get install -y --no-install-recommends $BUILD_DEPENDS - apt-get -y install liblightdm-gobject-dev #additional dependency required to build lightdm-webkit-greeter - apt-get -y autoremove --purge - apt-get clean - rm -rf /var/lib/apt/lists/* - dpkg-buildpackage -us -uc - ls -al / # test the directory structure presence - echo "Deploying packages to repositories" - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/ artifacts: untracked: true expire_in: 1 day #---------------------------------------------------------------------------------------------------------------- #amd64 build build-lightdm-webkit-greeter-hamara-amd64: stage: build-lightdm-webkit-greeter-hamara-amd64 image: name: rajudev/hamara-builder:amd64 allow_failure: true dependencies: [] script: - cd packages/lightdm-webkit-greeter-hamara - export BUILD_DEPENDS=`perl -ne 'next if /^#/; $p=(s/^Build-Depends:\s*/ / or (/^ / and $p)); s/,|\n|\([^)]+\)//mg; print if $p' < debian/control` - apt-get install -y --no-install-recommends $BUILD_DEPENDS - apt-get -y autoremove --purge - apt-get clean - rm -rf /var/lib/apt/lists/* - dpkg-buildpackage -us -uc - ls -al / # test the directory structure presence - echo "Deploying packages to repositories" - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/ artifacts: untracked: true expire_in: 1 day #i386 build build-lightdm-webkit-greeter-hamara-i386: stage: build-lightdm-webkit-greeter-hamara-i386 image: name: rajudev/hamara-builder:i386 allow_failure: true dependencies: [] script: - cd packages/lightdm-webkit-greeter-hamara - export BUILD_DEPENDS=`perl -ne 'next if /^#/; $p=(s/^Build-Depends:\s*/ / or (/^ / and $p)); s/,|\n|\([^)]+\)//mg; print if $p' < debian/control` - apt-get install -y --no-install-recommends $BUILD_DEPENDS - apt-get -y autoremove --purge - apt-get clean - rm -rf /var/lib/apt/lists/* - dpkg-buildpackage -us -uc - ls -al / # test the directory structure presence - echo "Deploying packages to repositories" - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/ artifacts: untracked: true expire_in: 1 day #---------------------------------------------------------------------------------------------------------------- #amd64 build build-materia-gtk-theme-amd64: stage: build-materia-gtk-theme-amd64 image: name: rajudev/hamara-builder:amd64 allow_failure: true dependencies: [] script: - cd packages/materia-gtk-theme - export BUILD_DEPENDS=`perl -ne 'next if /^#/; $p=(s/^Build-Depends:\s*/ / or (/^ / and $p)); s/,|\n|\([^)]+\)//mg; print if $p' < debian/control` - apt-get install -y --no-install-recommends $BUILD_DEPENDS - apt-get -y autoremove --purge - apt-get clean - rm -rf /var/lib/apt/lists/* - dpkg-buildpackage -us -uc - ls -al / # test the directory structure presence - echo "Deploying packages to repositories" - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/ artifacts: untracked: true expire_in: 1 day #i386 build build-materia-gtk-theme-i386: stage: build-materia-gtk-theme-i386 image: name: rajudev/hamara-builder:i386 allow_failure: true dependencies: [] script: - cd packages/materia-gtk-theme - export BUILD_DEPENDS=`perl -ne 'next if /^#/; $p=(s/^Build-Depends:\s*/ / or (/^ / and $p)); s/,|\n|\([^)]+\)//mg; print if $p' < debian/control` - apt-get install -y --no-install-recommends $BUILD_DEPENDS - apt-get -y autoremove --purge - apt-get clean - rm -rf /var/lib/apt/lists/* - dpkg-buildpackage -us -uc - ls -al / # test the directory structure presence - echo "Deploying packages to repositories" - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/ artifacts: untracked: true expire_in: 1 day #---------------------------------------------------------------------------------------------------------------- #amd64 build build-paper-icon-theme-amd64: stage: build-paper-icon-theme-amd64 image: name: rajudev/hamara-builder:amd64 allow_failure: true dependencies: [] script: - cd packages/paper-icon-theme - export BUILD_DEPENDS=`perl -ne 'next if /^#/; $p=(s/^Build-Depends:\s*/ / or (/^ / and $p)); s/,|\n|\([^)]+\)//mg; print if $p' < debian/control` - apt-get install -y --no-install-recommends $BUILD_DEPENDS - apt-get -y autoremove --purge - apt-get clean - rm -rf /var/lib/apt/lists/* - dpkg-buildpackage -us -uc - ls -al / # test the directory structure presence - echo "Deploying packages to repositories" - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/ - mkdir paper-icon-theme-artifacts - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo paper-icon-theme-artifacts artifacts: paths: - paper-icon-theme-artifacts/* untracked: false expire_in: 1 day #i386 build build-paper-icon-theme-i386: stage: build-paper-icon-theme-i386 image: name: rajudev/hamara-builder:i386 allow_failure: true dependencies: [] script: - cd packages/paper-icon-theme - export BUILD_DEPENDS=`perl -ne 'next if /^#/; $p=(s/^Build-Depends:\s*/ / or (/^ / and $p)); s/,|\n|\([^)]+\)//mg; print if $p' < debian/control` - apt-get install -y --no-install-recommends $BUILD_DEPENDS - apt-get -y autoremove --purge - apt-get clean - rm -rf /var/lib/apt/lists/* - dpkg-buildpackage -us -uc - ls -al / # test the directory structure presence - echo "Deploying packages to repositories" - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/ - mkdir paper-icon-theme-artifacts - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo paper-icon-theme-artifacts artifacts: paths: - paper-icon-theme-artifacts/* untracked: false expire_in: 1 day #---------------------------------------------------------------------------------------------------------------- #amd64 build build-plymouth-theme-hamara-amd64: stage: build-plymouth-theme-hamara-amd64 image: name: rajudev/hamara-builder:amd64 allow_failure: true dependencies: [] script: - cd packages/plymouth-theme-hamara - export BUILD_DEPENDS=`perl -ne 'next if /^#/; $p=(s/^Build-Depends:\s*/ / or (/^ / and $p)); s/,|\n|\([^)]+\)//mg; print if $p' < debian/control` - apt-get install -y --no-install-recommends $BUILD_DEPENDS - apt-get -y autoremove --purge - apt-get clean - rm -rf /var/lib/apt/lists/* - dpkg-buildpackage -us -uc - ls -al / # test the directory structure presence - echo "Deploying packages to repositories" - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/ artifacts: untracked: true expire_in: 1 day #i386 build build-plymouth-theme-hamara-i386: stage: build-plymouth-theme-hamara-i386 image: name: rajudev/hamara-builder:i386 allow_failure: true dependencies: [] script: - cd packages/plymouth-theme-hamara - export BUILD_DEPENDS=`perl -ne 'next if /^#/; $p=(s/^Build-Depends:\s*/ / or (/^ / and $p)); s/,|\n|\([^)]+\)//mg; print if $p' < debian/control` - apt-get install -y --no-install-recommends $BUILD_DEPENDS - apt-get -y autoremove --purge - apt-get clean - rm -rf /var/lib/apt/lists/* - dpkg-buildpackage -us -uc - ls -al / # test the directory structure presence - echo "Deploying packages to repositories" - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/ artifacts: untracked: true expire_in: 1 day #---------------------------------------------------------------------------------------------------------------- #amd64 build build-source-sans-pro-amd64: stage: build-source-sans-pro-amd64 image: name: rajudev/hamara-builder:amd64 allow_failure: true dependencies: [] script: - cd packages/source-sans-pro - export BUILD_DEPENDS=`perl -ne 'next if /^#/; $p=(s/^Build-Depends:\s*/ / or (/^ / and $p)); s/,|\n|\([^)]+\)//mg; print if $p' < debian/control` - apt-get install -y --no-install-recommends $BUILD_DEPENDS - apt-get -y autoremove --purge - apt-get clean - rm -rf /var/lib/apt/lists/* - dpkg-buildpackage -us -uc - ls -al / # test the directory structure presence - echo "Deploying packages to repositories" - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/ artifacts: untracked: true expire_in: 1 day #i386 build build-source-sans-pro-i386: stage: build-source-sans-pro-i386 image: name: rajudev/hamara-builder:i386 allow_failure: true dependencies: [] script: - cd packages/source-sans-pro - export BUILD_DEPENDS=`perl -ne 'next if /^#/; $p=(s/^Build-Depends:\s*/ / or (/^ / and $p)); s/,|\n|\([^)]+\)//mg; print if $p' < debian/control` - apt-get install -y --no-install-recommends $BUILD_DEPENDS - apt-get -y autoremove --purge - apt-get clean - rm -rf /var/lib/apt/lists/* - dpkg-buildpackage -us -uc - ls -al / # test the directory structure presence - echo "Deploying packages to repositories" - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/ artifacts: untracked: true expire_in: 1 day