This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
magicka/.gitlab-ci.yml

71 lines
1.8 KiB
YAML
Raw Normal View History

2018-10-19 11:21:26 +00:00
stages:
- build
2018-10-22 11:39:00 +00:00
- deploy
2018-10-19 11:21:26 +00:00
variables:
2018-10-19 11:31:06 +00:00
VERSION: "0.12"
2018-03-05 08:12:23 +00:00
2018-03-05 07:08:53 +00:00
before_script:
2018-10-24 22:35:29 +00:00
- env|sort
2018-10-19 11:40:12 +00:00
- pwd
2018-03-05 07:08:53 +00:00
2018-10-22 11:39:00 +00:00
build:x86_64:
image: ${CI_REGISTRY}/leenooks/ci-apt:x86_64
stage: build
script:
2018-10-24 22:35:29 +00:00
- apt-get update
- apt-get install -y zip unzip dos2unix libbz2-dev zlib1g-dev libgeoip-dev libncurses5-dev libhunspell-dev libsqlite3-dev libreadline-dev libssl1.0-dev libssh-dev libmicrohttpd-dev libdbd-sqlite3-perl libmosquitto-dev m4 sed
2018-10-22 11:39:00 +00:00
- git archive --format=tar HEAD |gzip -9 > ../${CI_PROJECT_NAME}_${VERSION}.orig.tar.gz
- dpkg-buildpackage -us -uc
- mkdir build
- ls -al ../
- mv ../${CI_PROJECT_NAME}*.deb build
tags:
- apt
- x86_64
only:
- debian
artifacts:
paths:
2018-10-22 11:42:35 +00:00
- build/*deb
2018-10-23 09:58:30 +00:00
expire_in: 1 week
2018-10-22 11:39:00 +00:00
deploy:x86_64:
stage: deploy
2018-10-22 11:42:35 +00:00
dependencies:
2018-10-22 11:39:00 +00:00
- build:x86_64
script:
2018-10-23 12:03:40 +00:00
- reprepro -b /apt includedeb $(awk -F"[)(]+" '/VERSION=/ {print $2}' /etc/os-release) build/${CI_PROJECT_NAME}_${VERSION}*.deb
2018-10-22 11:39:00 +00:00
tags:
- reprepro
build:armv7l:
image: ${CI_REGISTRY}/leenooks/ci-apt:armv7l
2018-10-19 11:21:26 +00:00
stage: build
2018-03-05 07:10:23 +00:00
script:
2018-10-24 22:35:29 +00:00
- apt-get update
- apt-get install -y zip unzip dos2unix libbz2-dev zlib1g-dev libgeoip-dev libncurses5-dev libhunspell-dev libsqlite3-dev libreadline-dev libssl1.0-dev libssh-dev libmicrohttpd-dev libdbd-sqlite3-perl libmosquitto-dev m4 sed
2018-10-19 11:43:33 +00:00
- git archive --format=tar HEAD |gzip -9 > ../${CI_PROJECT_NAME}_${VERSION}.orig.tar.gz
2018-10-19 11:21:26 +00:00
- dpkg-buildpackage -us -uc
2018-10-19 11:49:10 +00:00
- mkdir build
- ls -al ../
- mv ../${CI_PROJECT_NAME}*.deb build
2018-10-19 11:21:26 +00:00
tags:
- apt
2018-10-22 11:39:00 +00:00
- armv7l
2018-10-19 11:21:26 +00:00
only:
- debian
2018-10-19 11:31:06 +00:00
artifacts:
paths:
2018-10-19 11:49:10 +00:00
- build/*deb
2018-10-23 09:58:30 +00:00
expire_in: 1 week
2018-10-23 11:33:16 +00:00
deploy:armv7l:
stage: deploy
dependencies:
- build:armv7l
script:
2018-10-23 12:03:40 +00:00
- reprepro -b /apt includedeb $(awk -F"[)(]+" '/VERSION=/ {print $2}' /etc/os-release) build/${CI_PROJECT_NAME}_${VERSION}*.deb
2018-10-23 11:33:16 +00:00
tags:
- reprepro