Initial release of qico

This commit is contained in:
Deon George 2020-05-22 15:02:34 +10:00
commit 80c1c747ab
3 changed files with 81 additions and 0 deletions

13
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,13 @@
stages:
- build
- deploy
variables:
VERSION: "0.59.1"
before_script:
- env|sort
- pwd
include: .gitlab-deb-x86_64.yml
include: .gitlab-deb-armv7l.yml

34
.gitlab-deb-armv7l.yml Normal file
View File

@ -0,0 +1,34 @@
build:armv7l:
image: ${CI_REGISTRY}/leenooks/ci-apt:armv7l
stage: build
script:
- apt-get update
- apt-get install -y make gcc zlib1g-dev libperl-dev libbz2-dev ncurses-dev automake flex bison
- git clone https://github.com/leenooks/qico
- cd qico
- git archive --format=tar HEAD |gzip -9 > ../${CI_PROJECT_NAME}_${VERSION}.orig.tar.gz
- dpkg-buildpackage -us -uc
- cd ..
- mkdir build
- ls -al ./
- mv ./${CI_PROJECT_NAME}*.deb ./build/
tags:
- apt
- armv7l
only:
- master
artifacts:
paths:
- build/*deb
expire_in: 1 week
deploy:armv7l:
stage: deploy
dependencies:
- build:armv7l
only:
- master
script:
- reprepro.exp -- -b /apt includedeb $(awk -F"[)(]+" '/VERSION=/ {print $2}' /etc/os-release) build/${CI_PROJECT_NAME}_${VERSION}*.deb
tags:
- reprepro

34
.gitlab-deb-x86_64.yml Normal file
View File

@ -0,0 +1,34 @@
build:x86_64:
image: ${CI_REGISTRY}/leenooks/ci-apt:x86_64
stage: build
script:
- apt-get update
- apt-get install -y make gcc zlib1g-dev libperl-dev libbz2-dev ncurses-dev automake flex bison
- git clone https://github.com/leenooks/qico
- cd qico
- git archive --format=tar HEAD |gzip -9 > ../${CI_PROJECT_NAME}_${VERSION}.orig.tar.gz
- dpkg-buildpackage -us -uc
- cd ..
- mkdir build
- ls -al ./
- mv ./${CI_PROJECT_NAME}*.deb ./build/
tags:
- apt
- x86_64
only:
- master
artifacts:
paths:
- build/*deb
expire_in: 1 week
deploy:x86_64:
stage: deploy
dependencies:
- build:x86_64
only:
- master
script:
- reprepro.exp -- -b /apt includedeb $(awk -F"[)(]+" '/VERSION=/ {print $2}' /etc/os-release) build/${CI_PROJECT_NAME}_${VERSION}*.deb
tags:
- reprepro