mirror of
https://github.com/SOCI/soci.git
synced 2026-01-06 05:00:33 -06:00
Under FreeBSD, for example, bash is installed only in /usr/local/bin and
/bin/bash is not available, so use "/usr/bin/env bash" to find it any
location.
As there doesn't seem to be any portable way to pass "-e" option to bash
when using env ("env -S" doesn't work with older GNU coreutils used in
GitHub CI Linux builds), set this option in common.sh once now instead
of doing it on the shebang line of all the scripts.
It would be even better to rewrite the scripts to avoid requiring bash,
but this would require more effort.
15 lines
382 B
Bash
Executable File
15 lines
382 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Builds SOCI DB2 backend in CI builds
|
|
#
|
|
# Copyright (c) 2013 Brian R. Toonen <toonen@alcf.anl.gov>
|
|
# Copyright (c) 2013 Mateusz Loskot <mateusz@loskot.net>
|
|
#
|
|
source ${SOCI_SOURCE_DIR}/scripts/ci/common.sh
|
|
|
|
cmake ${SOCI_DEFAULT_CMAKE_OPTIONS} \
|
|
-DSOCI_DB2=ON \
|
|
-DSOCI_DB2_TEST_CONNSTR:STRING="DSN=SOCITEST\;Uid=db2inst1\;Pwd=db2inst1" \
|
|
..
|
|
|
|
run_make
|