job.sh (599B)
1 #!/bin/bash 2 set -exuo pipefail 3 # Update system 4 apt-get update -yq 5 apt-get upgrade -yq 6 7 # Build package 8 VERSION="$(./contrib/ci/version.sh)" 9 export VERSION 10 : "${VERSION:?version generation returned an empty version}" 11 echo "Building package version ${VERSION}" 12 EMAIL=none gbp dch --dch-opt=-b --ignore-branch --debian-tag="%(version)s" --git-author --new-version="${VERSION}" 13 make deb 14 15 # Test package 16 sudo ./contrib/ci/deb-test.sh 17 18 # Move to artifact 19 ls -alh ../*.deb 20 mkdir -p /artifacts/libeufin/${CI_COMMIT_REF} # Variable comes from CI environment 21 mv ../*.deb /artifacts/libeufin/${CI_COMMIT_REF}/