mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-11 03:26:37 +03:00
feebc8f689
I got this wrong: I thought parallel test ran in the same VM; they are isolated instead.
29 lines
590 B
Bash
Executable File
29 lines
590 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Run the tests in all the databases
|
|
# The script is designed for a Trusty environment.
|
|
|
|
set -e
|
|
|
|
run_test () {
|
|
version=$1
|
|
port=$2
|
|
dbname=psycopg2_test
|
|
|
|
printf "\n\nRunning tests against PostgreSQL $version\n\n"
|
|
export PSYCOPG2_TESTDB=$dbname
|
|
export PSYCOPG2_TESTDB_PORT=$port
|
|
export PSYCOPG2_TESTDB_USER=travis
|
|
make check
|
|
|
|
printf "\n\nRunning tests against PostgreSQL $version (green mode)\n\n"
|
|
export PSYCOPG2_TEST_GREEN=1
|
|
make check
|
|
}
|
|
|
|
run_test 9.6 54396
|
|
run_test 9.5 54395
|
|
run_test 9.4 54394
|
|
run_test 9.3 54393
|
|
run_test 9.2 54392
|