# Pipeline stages stages: - build-calamares-settings-hamara - build-grub-theme-hamara - build-hamara-keyring-2016.5 - build-hamara-live - build-hamara-sugam-config - build-hamara-wallpapers - build-hamara-welcome - build-lightdm-webkit-greeter - build-lightdm-webkit-greeter-hamara - build-materia-gtk-theme - build-paper-icon-theme - build-plymouth-theme-hamara - build-source-sans-pro # 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 #---------------------------------------------------------------------------------------------------------------- build-paper-icon-theme: stage: build-paper-icon-theme image: name: rajudev/hamara-builder 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 - du -h - echo "Deploying packages to repositories" - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /packages/ artifacts: paths: - packages/*.deb - packages/*.dsc - packages/*.buildinfo - packages/*.changes - packages/*.tar.gz expire_in: 1 day #---------------------------------------------------------------------------------------------------------------- build-calamares-settings-hamara: stage: build-calamares-settings-hamara 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: paths: - packages/*.deb - packages/*.dsc - packages/*.buildinfo - packages/*.changes - packages/*.tar.gz expire_in: 1 day #---------------------------------------------------------------------------------------------------------------- build-grub-theme-hamara: stage: build-grub-theme-hamara 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: paths: - packages/*.deb - packages/*.dsc - packages/*.buildinfo - packages/*.changes - packages/*.tar.gz expire_in: 1 day #---------------------------------------------------------------------------------------------------------------- build-hamara-keyring-2016.5: stage: build-hamara-keyring-2016.5 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: paths: - packages/*.deb - packages/*.dsc - packages/*.buildinfo - packages/*.changes - packages/*.tar.gz expire_in: 1 day #---------------------------------------------------------------------------------------------------------------- build-hamara-live: stage: build-hamara-live 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: paths: - packages/*.deb - packages/*.dsc - packages/*.buildinfo - packages/*.changes - packages/*.tar.gz expire_in: 1 day #---------------------------------------------------------------------------------------------------------------- build-hamara-sugam-config: stage: build-hamara-sugam-config 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: paths: - packages/*.deb - packages/*.dsc - packages/*.buildinfo - packages/*.changes - packages/*.tar.gz expire_in: 1 day #---------------------------------------------------------------------------------------------------------------- build-hamara-wallpapers: stage: build-hamara-wallpapers 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: paths: - packages/*.deb - packages/*.dsc - packages/*.buildinfo - packages/*.changes - packages/*.tar.gz expire_in: 1 day #---------------------------------------------------------------------------------------------------------------- build-hamara-welcome: stage: build-hamara-welcome 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: paths: - packages/*.deb - packages/*.dsc - packages/*.buildinfo - packages/*.changes - packages/*.tar.gz expire_in: 1 day #---------------------------------------------------------------------------------------------------------------- build-lightdm-webkit-greeter: stage: build-lightdm-webkit-greeter 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: paths: - packages/*.deb - packages/*.dsc - packages/*.buildinfo - packages/*.changes - packages/*.tar.gz expire_in: 1 day #---------------------------------------------------------------------------------------------------------------- build-lightdm-webkit-greeter-hamara: stage: build-lightdm-webkit-greeter-hamara 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: paths: - packages/*.deb - packages/*.dsc - packages/*.buildinfo - packages/*.changes - packages/*.tar.gz expire_in: 1 day #---------------------------------------------------------------------------------------------------------------- build-materia-gtk-theme: stage: build-materia-gtk-theme 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: paths: - packages/*.deb - packages/*.dsc - packages/*.buildinfo - packages/*.changes - packages/*.tar.gz expire_in: 1 day #---------------------------------------------------------------------------------------------------------------- build-paper-icon-theme: stage: build-paper-icon-theme 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/ artifacts: paths: - packages/*.deb - packages/*.dsc - packages/*.buildinfo - packages/*.changes - packages/*.tar.gz expire_in: 1 day #---------------------------------------------------------------------------------------------------------------- build-plymouth-theme-hamara: stage: build-plymouth-theme-hamara 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: paths: - packages/*.deb - packages/*.dsc - packages/*.buildinfo - packages/*.changes - packages/*.tar.gz expire_in: 1 day #---------------------------------------------------------------------------------------------------------- build-source-sans-pro: stage: build-source-sans-pro 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: paths: - packages/*.deb - packages/*.dsc - packages/*.buildinfo - packages/*.changes - packages/*.tar.gz expire_in: 1 day