GildedRose-Refactoring-Kata/plpgsql/pgunit/initialize.sh
2020-01-19 19:56:22 +01:00

15 lines
357 B
Bash

#!/usr/bin/env bash
set -ex
echo "Enable DBLINK"
psql -d kata -c 'CREATE EXTENSION DBLINK;'
echo "Initialize test framework"
wget https://raw.githubusercontent.com/adrianandrei-ca/pgunit/bc69dfc526ec3db55ff72af5d78eab55661502af/PGUnit.sql \
&& psql -d kata -f PGUnit.sql \
&& rm PGUnit.sql
echo "Initialize custom asserts"
psql -d kata -f asserts.sql