Commit 40177fe6 authored by Antoine Fontaine's avatar Antoine Fontaine 👣

Draft the Debian package

parent 52e28b34
Pipeline #1876 canceled with stages
in 2 minutes and 12 seconds
.stack-work/
debian/gnupaste*
debian/.debhelper/
*.cabal
image: gitlab.gnugen.ch:5005/gnugen/ci-containers/debian-packaging:latest
stages:
- build
- checking
- deploy
# Build package using dpkg-buildpackage
run-build:
stage: build
tags:
- debian
- generic
script:
- echo 'Acquire::http { Proxy "http://rapperswil:3142"; };' > /etc/apt/apt.conf.d/02proxy
- apt-get update -qy
- apt-get install -y build-essential haskell-stack zlib1g-dev
- stack upgrade
- stack build --copy-bins --pedantic --ghc-options -Wno-name-shadowing
- cp $(stack path --local-bin)/gnupaste ./gnupaste
- dpkg-buildpackage -us -uc
- mkdir build-artifacts
- mv ../gnupaste_* build-artifacts/
- mv gnupaste build-artifacts/
artifacts:
paths:
- build-artifacts
# Check built package using lintian.
run-checking:
stage: checking
tags:
- debian
- generic
script:
- lintian -i build-artifacts/gnupaste*.changes
# Deploy the built package to rapperswil
run-deploy:
stage: deploy
variables:
only:
- tags
except:
- branches
tags:
- debian
- generic
before_script:
- 'which ssh-agent || (apt-get update -qy && apt-get install openssh-client -y)'
- eval $(ssh-agent -s)
- echo "$CD_SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
- mkdir -p ~/.ssh
- echo "$CD_SSH_SERVER_HOSTKEYS" > ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
script:
- 'echo "$CD_MINIDINSTALL_CONFIG" > ~/.dput.cf'
- 'dput -u gnugen build-artifacts/gnugen*.changes'
gnupaste (2.0.0-rc1) unstable; urgency=medium
* Initial release
-- Antoine Fontaine <antoine.fontaine@epfl.ch> Sun, 20 Dec 2020 15:49:01 +0100
Source: gnupaste
Maintainer: Antoine Fontaine <antoine.fontaine@epfl.ch>
Section: haskell
Build-Depends:
Standards-Version: 4.5.0
Description: GNU Generation's new pastebin software
Package: gnupaste
Architecture: all
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Files: *
Copyright: 2018 Joachim Desroches
2020 Antoine Fontaine
License: BSD-3-clause
Files: debian/*
Copyright: held by the contributors mentioned in debian/changelog
License: BSD-3-clause
License: BSD-3-clause
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
.
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
.
* Neither the name of Joachim Desroches nor the names of other
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#!/usr/bin/make -f
%:
dh $@
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment