source: gitlab-build.sh @ fdf23b8

develop
Last change on this file since fdf23b8 was dd48bb5, checked in by Brad Cowie <brad@…>, 2 years ago

Add debian packaging.

  • Property mode set to 100755
File size: 770 bytes
Line 
1#!/bin/bash
2
3set -x -e -o pipefail
4
5export DEBEMAIL='packaging@wand.net.nz'
6export DEBFULLNAME='WAND Packaging'
7export DEBIAN_FRONTEND=noninteractive
8
9apt-get update
10apt-get install -y equivs devscripts dpkg-dev quilt curl apt-transport-https \
11    apt-utils ssl-cert ca-certificates gnupg lsb-release debhelper git
12
13echo "deb https://packages.wand.net.nz $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/wand.list
14curl https://packages.wand.net.nz/keyring.gpg -o /etc/apt/trusted.gpg.d/wand.gpg
15
16apt-get update
17apt-get upgrade -y
18
19dpkg-parsechangelog -S version | grep -q ${CI_COMMIT_REF_NAME} || debchange --newversion ${CI_COMMIT_REF_NAME} -b "New upstream release"
20mk-build-deps -i -r -t 'apt-get -f -y --force-yes'
21dpkg-buildpackage -b -us -uc -rfakeroot -j4
Note: See TracBrowser for help on using the repository browser.