mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-22 08:56:34 +03:00
Run tests against PostgreSQL 10 beta1
Use the new Postgres verisoning schema: 10 is a major version, 10.0 a patch release. See https://wiki.postgresql.org/wiki/New_in_postgres_10#Change_in_Version_Numbering
This commit is contained in:
parent
767118467f
commit
7d9ef5f952
|
@ -26,9 +26,9 @@ create () {
|
||||||
export VERSION=$1
|
export VERSION=$1
|
||||||
export PACKAGE=${2:-$VERSION}
|
export PACKAGE=${2:-$VERSION}
|
||||||
|
|
||||||
# Version as number: 9.6 -> 906
|
# Version as number: 9.6 -> 906; 11 -> 1100
|
||||||
export VERNUM=$(( $(echo $VERSION \
|
export VERNUM=$(echo $VERSION \
|
||||||
| sed 's/\(.\+\)\.\(.\+\)/100 * \1 + \2/') ))
|
| sed 's/\([0-9]\+\)\(\.\([0-9]\+\)\)\?/100 * \1 + 0\3/' | bc)
|
||||||
|
|
||||||
# Port number: 9.6 -> 50906
|
# Port number: 9.6 -> 50906
|
||||||
export PORT=$(( 50000 + $VERNUM ))
|
export PORT=$(( 50000 + $VERNUM ))
|
||||||
|
@ -127,5 +127,5 @@ fi
|
||||||
|
|
||||||
# Postgres built from master
|
# Postgres built from master
|
||||||
if [[ -n "$TEST_FUTURE" ]]; then
|
if [[ -n "$TEST_FUTURE" ]]; then
|
||||||
create 10.0 10-master
|
create 10 10beta1
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -23,8 +23,8 @@ run_test () {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Port number: 9.6 -> 50906
|
# Port number: 9.6 -> 50906
|
||||||
port=$(( 50000 + $(echo $VERSION \
|
port=$(echo $VERSION \
|
||||||
| sed 's/\(.\+\)\.\(.\+\)/100 * \1 + \2/') ))
|
| sed 's/\([0-9]\+\)\(\.\([0-9]\+\)\)\?/50000 + 100 * \1 + 0\3/' | bc)
|
||||||
|
|
||||||
printf "\n\nRunning tests against PostgreSQL $VERSION (port $port)\n\n"
|
printf "\n\nRunning tests against PostgreSQL $VERSION (port $port)\n\n"
|
||||||
export PSYCOPG2_TESTDB=$DBNAME
|
export PSYCOPG2_TESTDB=$DBNAME
|
||||||
|
@ -68,5 +68,5 @@ fi
|
||||||
|
|
||||||
# Postgres built from master
|
# Postgres built from master
|
||||||
if [[ -n "$TEST_FUTURE" ]]; then
|
if [[ -n "$TEST_FUTURE" ]]; then
|
||||||
run_test 10.0
|
run_test 10
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user