Files
soci/scripts/travis/script_db2.sh
Vadim Zeitlin 84fed32d0b Refactor Travis CI build scripts to reuse common options
Define SOCI_DEFAULT_CMAKE_OPTIONS once and use it in almost all builds
instead of repeating the same options many times everywhere.

For the remaining build (Valgrind) still reuse a couple of options which
it has in common with the other ones.
2020-10-10 23:36:40 +02:00

16 lines
476 B
Bash
Executable File

#!/bin/bash -e
# Builds and tests SOCI backend DB2 at travis-ci.org
#
# Copyright (c) 2013 Brian R. Toonen <toonen@alcf.anl.gov>
# Copyright (c) 2013 Mateusz Loskot <mateusz@loskot.net>
#
source ${TRAVIS_BUILD_DIR}/scripts/travis/common.sh
cmake ${SOCI_DEFAULT_CMAKE_OPTIONS} \
-DSOCI_DB2=ON \
-DSOCI_DB2_TEST_CONNSTR:STRING="DSN=SOCITEST\;Uid=db2inst1\;Pwd=db2inst1" \
..
run_make
LSAN_OPTIONS=suppressions=${TRAVIS_BUILD_DIR}/scripts/suppress_db2.txt run_test