2019-01-29 00:15:59 +00:00
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
- deploy
|
|
|
|
|
|
|
|
variables:
|
2019-08-20 03:14:58 +00:00
|
|
|
VERSION: "3.5.1"
|
2019-01-29 00:15:59 +00:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
- env|sort
|
|
|
|
- pwd
|
|
|
|
|
|
|
|
build:x86_64:
|
2020-10-29 00:04:41 +00:00
|
|
|
image: ${CI_REGISTRY}/leenooks/ci-apt:x86_64-buster
|
2019-01-29 00:15:59 +00:00
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- apt-get update
|
2019-08-20 03:59:20 +00:00
|
|
|
- apt-get install -y cmake pandoc
|
2019-01-29 00:15:59 +00:00
|
|
|
- git clone git://git.code.sf.net/p/makenl/code makenl
|
|
|
|
- cd makenl
|
|
|
|
- git checkout debian
|
|
|
|
- git merge master --no-edit
|
2019-08-20 03:14:58 +00:00
|
|
|
- git am ../0001-Updated-to-3.5.1.patch
|
2019-08-20 04:14:31 +00:00
|
|
|
- git am ../0002-Debian-fixes-for-3.5.x.patch
|
2019-08-20 04:51:43 +00:00
|
|
|
- curl -s https://sourceforge.net/p/makenl/feature-requests/9/attachment/NOKILLSENT.patch|git apply -v --index && git commit -m "NO KILLSENT patch"
|
2019-01-29 00:37:04 +00:00
|
|
|
- git archive --format=tar HEAD |gzip -9 > ../${CI_PROJECT_NAME}_${VERSION}.orig.tar.gz
|
2019-01-29 00:15:59 +00:00
|
|
|
- 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:
|
2020-05-22 02:22:11 +00:00
|
|
|
- reprepro.exp -- -b /apt includedeb $(awk -F"[)(]+" '/VERSION=/ {print $2}' /etc/os-release) build/${CI_PROJECT_NAME}_${VERSION}*.deb
|
2019-01-29 00:15:59 +00:00
|
|
|
tags:
|
|
|
|
- reprepro
|
|
|
|
|
|
|
|
build:armv7l:
|
2020-10-29 00:04:41 +00:00
|
|
|
image: ${CI_REGISTRY}/leenooks/ci-apt:armv7l-buster
|
2019-01-29 00:15:59 +00:00
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- apt-get update
|
2019-08-20 04:23:29 +00:00
|
|
|
- apt-get install -y cmake pandoc
|
2019-01-29 00:15:59 +00:00
|
|
|
- git clone git://git.code.sf.net/p/makenl/code makenl
|
|
|
|
- cd makenl
|
|
|
|
- git checkout debian
|
|
|
|
- git merge master --no-edit
|
2019-08-20 03:14:58 +00:00
|
|
|
- git am ../0001-Updated-to-3.5.1.patch
|
2019-08-20 04:20:37 +00:00
|
|
|
- git am ../0002-Debian-fixes-for-3.5.x.patch
|
2019-08-20 04:51:43 +00:00
|
|
|
- curl -s https://sourceforge.net/p/makenl/feature-requests/9/attachment/NOKILLSENT.patch|git apply -v --index && git commit -m "NO KILLSENT patch"
|
2019-01-29 00:37:04 +00:00
|
|
|
- git archive --format=tar HEAD |gzip -9 > ../${CI_PROJECT_NAME}_${VERSION}.orig.tar.gz
|
2019-01-29 00:15:59 +00:00
|
|
|
- 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:
|
2020-05-22 02:22:11 +00:00
|
|
|
- reprepro.exp -- -b /apt includedeb $(awk -F"[)(]+" '/VERSION=/ {print $2}' /etc/os-release) build/${CI_PROJECT_NAME}_${VERSION}*.deb
|
2019-01-29 00:15:59 +00:00
|
|
|
tags:
|
|
|
|
- reprepro
|