diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2018-10-15 00:58:32 +0100 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2018-10-15 00:58:32 +0100 |
commit | b205764fdde4549c48c27841aa17e6c7f499e808 (patch) | |
tree | 1475eb57dc854ea4a1dc93c1c6a567e6fc584e5c /scripts/travis_prepare.sh | |
parent | e7227ce87b8da75fef1a3376ebb47e2bf20f6063 (diff) | |
parent | 7a5edff6c66a0410d6fecd4445980aabafc3ab4a (diff) | |
download | psycopg2-errors-module.tar.gz |
Merge branch 'master' into errors-moduleerrors-module
Diffstat (limited to 'scripts/travis_prepare.sh')
-rwxr-xr-x | scripts/travis_prepare.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/travis_prepare.sh b/scripts/travis_prepare.sh index 73cbb84..f2e06b7 100755 --- a/scripts/travis_prepare.sh +++ b/scripts/travis_prepare.sh @@ -38,8 +38,8 @@ create () { export PGBIN="$PGDIR/bin" # install postgres versions not available on the image - if (( "$VERNUM" < 902 || "$VERNUM" > 906 )); then - wget -O - http://initd.org/psycopg/upload/postgresql/postgresql-${PACKAGE}.tar.bz2 \ + if [[ ! -d "${PGDIR}" ]]; then + wget -O - http://initd.org/psycopg/upload/postgresql/postgresql-${PACKAGE}-$(lsb_release -cs).tar.bz2 \ | sudo tar xjf - -C /usr/lib/postgresql fi @@ -109,7 +109,6 @@ if [[ -z "$DONT_TEST_PRESENT" ]]; then create 9.6 create 9.5 create 9.4 - create 9.3 fi # Unsupported postgres versions that we still support @@ -124,6 +123,7 @@ if [[ -n "$TEST_PAST" ]]; then create 9.0 create 9.1 create 9.2 + create 9.3 fi # Postgres built from master |