Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cde2aa2

Browse filesBrowse files
committed
Add an error message in travis for valgrind checks
1 parent 81e25a0 commit cde2aa2
Copy full SHA for cde2aa2

File tree

1 file changed

+3
-1
lines changed
Filter options

1 file changed

+3
-1
lines changed

‎travis/pg-travis-test.sh

Copy file name to clipboardExpand all lines: travis/pg-travis-test.sh
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ if [ $CHECK_TYPE = "valgrind" ]; then
2121
apt_packages="build-essential libgd-dev valgrind lcov"
2222
sudo apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -y install -qq $apt_packages
2323
# grab sources from github
24-
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`
24+
echo `curl -s -I 'https://api.github.com/repos/postgres/postgres/git/refs/tags'`
25+
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`
26+
[[ -z "$tag" ]] && { echo "could not get branch name for release" ; exit 1; }
2527
prefix="$HOME/pgsql-$tag"
2628
curl "https://codeload.github.com/postgres/postgres/tar.gz/$tag" -o ~/$tag.tar.gz
2729
# build them with valgrind support

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.