Skip to content

Instantly share code, notes, and snippets.

@apolishch
Created August 13, 2019 00:55
Show Gist options
  • Save apolishch/64769963dd093c337e7819f91e6c03f0 to your computer and use it in GitHub Desktop.
Save apolishch/64769963dd093c337e7819f91e6c03f0 to your computer and use it in GitHub Desktop.
installpgtap
#!/bin/bash
yes | sudo cpan TAP::Parser::SourceHandler::pgTAP
code=$?
if [[ $code -eq 0 ]] ; then
echo "0"
elif [[ $code -eq 141 ]] ; then
echo "141"
else
exit $code
fi
curl -L0k https://github.com/theory/pgtap/archive/master.zip > pgtap.zip
unzip pgtap.zip
cd pgtap-master && make && make installcheck && make install
echo "CREATE EXTENSION pgtap;" | psql -U $FLOCK_PG_USERNAME -d $FLOCK_PG_DATABASE -h $FLOCK_PG_HOST
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment