libeufin

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

job.sh (439B)


      1 #!/bin/bash
      2 set -exuo pipefail
      3 
      4 # Update system
      5 apt-get update -yq
      6 apt-get upgrade -yq
      7 
      8 ./bootstrap
      9 ./configure --prefix /usr
     10 
     11 # Setup postgres cluster
     12 sudo -u postgres pg_ctlcluster 17 main start
     13 sudo -u postgres createuser root --superuser
     14 sudo -u postgres createdb -O root libeufincheck
     15 
     16 check_command()
     17 {
     18     make check &> test-suite.log || make check &> test-suite.log
     19 }
     20 
     21 if ! check_command ; then
     22     cat test-suite.log
     23     exit 1
     24 fi