mirror of
https://github.com/SOCI/soci.git
synced 2026-01-28 08:19:16 -06:00
While this doesn't matter for Travis CI, it makes sense to separate them for the other CI systems using more structured approach to the build steps. Add a few test_*.sh scripts for the backends that need to do something special when running the tests and just use run_test function for all the others.
20 lines
411 B
Bash
Executable File
20 lines
411 B
Bash
Executable File
#!/bin/bash
|
|
# Run SOCI tests in CI builds
|
|
#
|
|
# Copyright (c) 2013 Mateusz Loskot <mateusz@loskot.net>
|
|
#
|
|
source ${SOCI_SOURCE_DIR}/scripts/ci/common.sh
|
|
|
|
# run tests from the build directory
|
|
cd ${builddir}
|
|
|
|
# run the tests
|
|
SCRIPT=${SOCI_SOURCE_DIR}/scripts/ci/test_${SOCI_CI_BACKEND}.sh
|
|
if [ -x ${SCRIPT} ]; then
|
|
# use the custom script for this backend
|
|
echo "Running ${SCRIPT}"
|
|
${SCRIPT}
|
|
else
|
|
run_test
|
|
fi
|