robocop

Checks KYC attributes against sanction lists
Log | Files | Refs | Submodules | README | LICENSE

job.sh (986B)


      1 #!/bin/bash
      2 set -exuo pipefail
      3 
      4 job_dir=$(dirname "${BASH_SOURCE[0]}")
      5 
      6 # Update system
      7 apt-get update -yq
      8 apt-get upgrade -yq
      9 
     10 # Stamp the package with a version derived from the most recent v*.*.* tag plus
     11 # the distance to HEAD, so every CI build is uniquely versioned and the packages
     12 # the deploy job pushes actually supersede one another.  Without this the
     13 # version would be whatever debian/changelog says (1.0.0) for every commit.
     14 export VERSION="$("${job_dir}"/version.sh)"
     15 echo "Building package version ${VERSION}"
     16 EMAIL=none gbp dch --ignore-branch --debian-tag="%(version)s" --git-author --new-version="${VERSION}"
     17 
     18 # Fetch the submodules: the package ships doc/prebuilt/man/robocop.1, and
     19 # dh_install fails the build outright when that man page is not checked out.
     20 ./bootstrap
     21 
     22 # Build package
     23 make deb
     24 
     25 # Move to artifact
     26 ls -alh ../*.deb
     27 mkdir -p /artifacts/robocop/${CI_COMMIT_REF} # Variable comes from CI environment
     28 mv ../*.deb /artifacts/robocop/${CI_COMMIT_REF}/