.gitlab-ci.yml 26.3 KB
Newer Older
1 2
#/*
# *.gitlab-ci.yml
3
# *
4
# * Copyright 2018 Raju Devidas <raju@hamaralinux.org>
5
# *
6 7 8 9
# * 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.
10
# *
11 12 13 14
# * 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.
15
# *
16 17 18 19
# * 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.
20 21
# *
# *
22
# */
rajudev's avatar
rajudev committed
23

24
# Defines stages each corresponding to a separate hamara-package
25

26
stages:
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
    - 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
65 66

# These steps will run before each build.
67
# They are included here to avoid repetition of same code on later stages.
68
# similar to a macro
69 70 71 72 73 74 75 76 77 78

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

79
#----------------------------------------------------------------------------------------------------------------
80 81 82
#amd64 build
build-calamares-settings-hamara-amd64:
    stage: build-calamares-settings-hamara-amd64
83
    image:
84
        name: rajudev/hamara-builder:amd64
85
    allow_failure: true
86
    dependencies: []
87

88 89 90 91 92 93 94 95 96 97 98
    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"
99
        - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/
100 101 102 103

    artifacts:
        untracked: true
        expire_in: 1 day
rajudev's avatar
rajudev committed
104

105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
#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
129

130 131 132 133
#----------------------------------------------------------------------------------------------------------------
#amd64 build
build-grub-theme-hamara-amd64:
    stage: build-grub-theme-hamara-amd64
134
    image:
135
        name: rajudev/hamara-builder:amd64
136
    allow_failure: true
137
    dependencies: []
138

139 140 141 142 143 144 145 146 147 148
    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"
149
        - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/
150 151 152 153 154

    artifacts:
        untracked: true
        expire_in: 1 day

155 156 157 158 159 160 161
#i386 build
build-grub-theme-hamara-i386:
    stage: build-grub-theme-hamara-i386
    image:
        name: rajudev/hamara-builder:i386
    allow_failure: true
    dependencies: []
162

163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182
    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
183
    image:
184
        name: rajudev/hamara-builder:amd64
185
    allow_failure: true
186
    dependencies: []
187

188 189 190 191 192 193 194 195 196 197
    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"
198
        - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/
199

200 201 202
    artifacts:
        untracked: true
        expire_in: 1 day
203

204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230
#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
231
    image:
232
        name: rajudev/hamara-builder:amd64
233
    allow_failure: true
234
    dependencies: []
235

236 237 238 239 240 241 242 243 244 245
    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"
246
        - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/
247 248 249 250 251 252

    artifacts:
        untracked: true
        expire_in: 1 day


253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280
#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
281
    image:
282
        name: rajudev/hamara-builder:amd64
283
    allow_failure: true
284
    dependencies: []
285

286 287 288 289 290 291 292 293 294 295
    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"
296
        - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/
297 298 299 300 301

    artifacts:
        untracked: true
        expire_in: 1 day

302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326
#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


327 328
#----------------------------------------------------------------------------------------------------------------

329 330 331
#amd64 build
build-hamara-wallpapers-amd64:
    stage: build-hamara-wallpapers-amd64
332
    image:
333
        name: rajudev/hamara-builder:amd64
334
    allow_failure: true
335
    dependencies: []
336 337 338 339 340 341 342 343 344 345 346

    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"
347
        - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/
348 349 350 351 352

    artifacts:
        untracked: true
        expire_in: 1 day

353 354 355 356 357 358 359
#i386 build
build-hamara-wallpapers-i386:
    stage: build-hamara-wallpapers-i386
    image:
        name: rajudev/hamara-builder:i386
    allow_failure: true
    dependencies: []
360

361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380
    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
381
    image:
382
        name: rajudev/hamara-builder:amd64
383
    allow_failure: true
384
    dependencies: []
385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409

    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: []

410 411 412 413 414 415 416 417 418 419
    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"
420
        - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/
421 422 423 424 425 426

    artifacts:
        untracked: true
        expire_in: 1 day


427 428 429 430
#----------------------------------------------------------------------------------------------------------------
#amd64 build
build-lightdm-webkit-greeter-amd64:
    stage: build-lightdm-webkit-greeter-amd64
431
    image:
432
        name: rajudev/hamara-builder:amd64
433
    allow_failure: true
434
    dependencies: []
435

436 437 438 439
    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
440
        - apt-get -y install liblightdm-gobject-dev #additional dependency required to build lightdm-webkit-greeter
441 442 443 444 445 446
        - 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"
447
        - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/
448 449 450 451 452

    artifacts:
        untracked: true
        expire_in: 1 day

453 454 455 456 457 458 459
#i386 build
build-lightdm-webkit-greeter-i386:
    stage: build-lightdm-webkit-greeter-i386
    image:
        name: rajudev/hamara-builder:i386
    allow_failure: true
    dependencies: []
460

461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481
    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
482
    image:
483
        name: rajudev/hamara-builder:amd64
484
    allow_failure: true
485
    dependencies: []
486

487 488 489 490 491 492 493 494 495 496
    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"
497
        - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/
498 499 500 501 502

    artifacts:
        untracked: true
        expire_in: 1 day

503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528

#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


529 530
#----------------------------------------------------------------------------------------------------------------

531 532 533
#amd64 build
build-materia-gtk-theme-amd64:
    stage: build-materia-gtk-theme-amd64
534
    image:
535
        name: rajudev/hamara-builder:amd64
536
    allow_failure: true
537
    dependencies: []
538

539 540 541 542 543 544 545 546 547 548
    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"
549
        - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/
550 551 552 553 554

    artifacts:
        untracked: true
        expire_in: 1 day

555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573
#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/
574

575 576 577 578 579 580 581 582
    artifacts:
        untracked: true
        expire_in: 1 day

#----------------------------------------------------------------------------------------------------------------
#amd64 build
build-paper-icon-theme-amd64:
    stage: build-paper-icon-theme-amd64
583
    image:
584
        name: rajudev/hamara-builder:amd64
585
    allow_failure: true
586
    dependencies: []
587

588 589 590 591 592 593 594 595 596 597
    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"
598
        - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/
599 600
        - mkdir paper-icon-theme-artifacts
        - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo paper-icon-theme-artifacts
601 602

    artifacts:
603 604 605
        paths:
            - paper-icon-theme-artifacts/*
        untracked: false
606 607
        expire_in: 1 day

608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628
#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
629

630 631 632 633 634 635 636 637 638 639
    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
640
    image:
641
        name: rajudev/hamara-builder:amd64
642
    allow_failure: true
643
    dependencies: []
644

645
    script:
646
        - cd packages/plymouth-theme-hamara
647 648 649 650 651 652 653 654
        - 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"
655
        - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/
656 657 658 659
    artifacts:
        untracked: true
        expire_in: 1 day

660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685
#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
686
    image:
687
        name: rajudev/hamara-builder:amd64
688
    allow_failure: true
689
    dependencies: []
690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715

    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: []

716 717 718 719 720 721 722 723 724 725
    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"
726
        - cp ../*.deb ../*.dsc ../*.changes ../*.tar.* ../*.buildinfo /incoming/
727 728 729

    artifacts:
        untracked: true
730
        expire_in: 1 day