Skip to content

Commit

Permalink
Add an error message in travis for valgrind checks
Browse files Browse the repository at this point in the history
ildus committed Apr 17, 2018

Verified

This commit was signed with the committer’s verified signature.
1 parent 81e25a0 commit cde2aa2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion travis/pg-travis-test.sh
Original file line number Diff line number Diff line change
@@ -21,7 +21,9 @@ if [ $CHECK_TYPE = "valgrind" ]; then
apt_packages="build-essential libgd-dev valgrind lcov"
sudo apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -y install -qq $apt_packages
# grab sources from github
tag=`curl -s 'https://api.github.com/repos/postgres/postgres/git/refs/tags' | jq -r '.[] | .ref' | sed 's/^refs\/tags\///' | grep "REL_*${PG_VER/./_}_" | tail -n 1`
echo `curl -s -I 'https://api.github.com/repos/postgres/postgres/git/refs/tags'`
tag=`curl -s 'https://api.github.com/repos/postgres/postgres/git/refs/tags' | jq -r '.[].ref' | sed 's/^refs\/tags\///' | grep "REL_*${PG_VER/./_}_" | tail -n 1`
[[ -z "$tag" ]] && { echo "could not get branch name for release" ; exit 1; }
prefix="$HOME/pgsql-$tag"
curl "https://codeload.github.com/postgres/postgres/tar.gz/$tag" -o ~/$tag.tar.gz
# build them with valgrind support

0 comments on commit cde2aa2

Please sign in to comment.