mirror of
https://github.com/SOCI/soci.git
synced 2026-02-15 02:38:42 -06:00
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.
15 lines
326 B
Bash
Executable File
15 lines
326 B
Bash
Executable File
#!/bin/bash -e
|
|
# Builds and tests SOCI backend SQLite3 at travis-ci.org
|
|
#
|
|
# Copyright (c) 2013 Mateusz Loskot <mateusz@loskot.net>
|
|
#
|
|
source ${TRAVIS_BUILD_DIR}/scripts/travis/common.sh
|
|
|
|
cmake ${SOCI_DEFAULT_CMAKE_OPTIONS} \
|
|
-DSOCI_MYSQL=ON \
|
|
-DSOCI_MYSQL_TEST_CONNSTR:STRING="db=soci_test" \
|
|
..
|
|
|
|
run_make
|
|
run_test
|