libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

job.sh (549B)


      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 export VERSION="$(./contrib/ci/jobs/4-deb-package/version.sh)"
      9 echo "Building package version ${VERSION}"
     10 EMAIL=none gbp dch --dch-opt=-b --ignore-branch --debian-tag="%(version)s" --git-author --new-version="${VERSION}"
     11 make deb
     12 
     13 # Test package
     14 sudo ./contrib/ci/deb-test.sh
     15 
     16 # Move to artifact
     17 ls -alh ../*.deb
     18 mkdir -p /artifacts/libeufin/${CI_COMMIT_REF} # Variable comes from CI environment
     19 mv ../*.deb /artifacts/libeufin/${CI_COMMIT_REF}/