sync

Backup service to store encrypted wallet databases (experimental)
Log | Files | Refs | Submodules | README | LICENSE

debian-package-job.sh (987B)


      1 #!/bin/bash
      2 set -exuo pipefail
      3 # This file is in the public domain.
      4 # Helper script to build the latest DEB packages in the container.
      5 # Shared between various jobs.
      6 
      7 unset LD_LIBRARY_PATH
      8 
      9 # Install build-time dependencies.
     10 # Update apt cache first
     11 apt-get update
     12 apt-get upgrade -y
     13 mk-build-deps --install --tool='apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes' debian/control
     14 
     15 # Sanity-check the version generation logic before deriving the package version.
     16 python3 contrib/ci/test_version.py
     17 
     18 VERSION="$(./contrib/ci/version.sh)"
     19 export VERSION
     20 : "${VERSION:?version generation returned an empty version}"
     21 echo "Building package version ${VERSION}"
     22 EMAIL=none gbp dch --dch-opt=-b --ignore-branch --debian-tag="%(version)s" --git-author --new-version="${VERSION}"
     23 ./bootstrap
     24 dpkg-buildpackage -rfakeroot -b -uc -us
     25 
     26 ls -alh ../*.deb
     27 mkdir -p /artifacts/sync/${CI_COMMIT_REF} # Variable comes from CI environment
     28 mv ../*.deb /artifacts/sync/${CI_COMMIT_REF}/