Files
soci/scripts/travis/script_odbc.sh
Vadim Zeitlin 277be5ffb9 Use Xenial version of odbc-postgresql package
Travis hosts use PostgreSQL PPA which is problematic for a few reasons:

1. We don't actually test in the same environment as most SOCI users,
   who would just use the standard Ubuntu repositories and not this PPA.
2. The environment is not even stable, e.g. recently the version of
   psqlodbc has changed from 12 to 13 in Travis builds, breaking them
   due to new leak reports from ASAN.
3. We don't have debug symbols for these packages as the PPA doesn't
   provide them and the ones from Ubuntu repositories don't match. This
   prevents us from even creating precise suppressions for ASAN.

Solve all these problems at once by just sticking to the stock Xenial
version, which doesn't even trigger any leak reports, so there is
nothing to suppress any more and the changes of 457ec97e (Suppress
reports about memory leaks in PostgreSQL ODBC test, 2020-03-29) can be
reverted.
2020-11-29 15:16:58 +01:00

23 lines
521 B
Bash
Executable File

#!/bin/bash -e
# Builds and tests SOCI backend ODBC at travis-ci.org
#
# Copyright (c) 2013 Mateusz Loskot <mateusz@loskot.net>
#
source ${TRAVIS_BUILD_DIR}/scripts/travis/common.sh
ODBC_TEST=${PWD}/../tests/odbc
if test ! -d ${ODBC_TEST}; then
echo "ERROR: '${ODBC_TEST}' directory not found"
exit 1
fi
cmake ${SOCI_DEFAULT_CMAKE_OPTIONS} \
-DSOCI_ODBC=ON \
..
run_make
# Exclude the tests which can't be run due to the absence of ODBC drivers (MS
# SQL and MySQL).
run_test -E 'soci_odbc_test_m.sql'