Created
August 13, 2019 00:55
-
-
Save apolishch/64769963dd093c337e7819f91e6c03f0 to your computer and use it in GitHub Desktop.
installpgtap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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