Skip to content

Commit

Permalink
Attempt to install oracle-xe-client on travis-ci
Browse files Browse the repository at this point in the history
Testing Oracle setup for the first time. Temporarily disabled ctest run.
  • Loading branch information
mloskot committed Feb 28, 2013
1 parent 20f66a3 commit 94987de
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
15 changes: 13 additions & 2 deletions bin/ci/before_install.sh
Expand Up @@ -2,13 +2,24 @@
# Run before_intsall actions for SOCI build at travis-ci.org
# Mateusz Loskot <mateusz@loskot.net>, http://github.com/SOCI
#
set -e
if [[ "$TRAVIS" != "true" ]] ; then
echo_err "Running this script makes no sense outside of travis-ci.org"
exit 1
fi
tmstamp() { echo -n "[$(date '+%H:%M:%S')]" ; }

# Install dependencies
echo "$(tstamp) before_intsall::apt-get starting $(date)"
sudo bash -c 'echo "deb https://oss.oracle.com/debian unstable main non-free" >> /etc/apt/sources.list'
sudo apt-get update -qq
sudo apt-get install -qq \
libboost-dev libboost-date-time-dev \
libmyodbc unixodbc-dev odbc-postgresql \
firebird2.5-super firebird2.5-dev
#
firebird2.5-super firebird2.5-dev \
oracle-xe-client
echo "$(tstamp) before_intsall::apt-get finished $(date)"

# Configure Firebird
# See: Non-interactive setup for travis-ci.org
# http://tech.groups.yahoo.com/group/firebird-support/message/120883
Expand Down
5 changes: 5 additions & 0 deletions bin/ci/before_script.sh
Expand Up @@ -2,6 +2,11 @@
# Run before_script actions for SOCI build at travis-ci.org
# Mateusz Loskot <mateusz@loskot.net>, http://github.com/SOCI
#
set -e
if [[ "$TRAVIS" != "true" ]] ; then
echo_err "Running this script makes no sense outside of travis-ci.org"
exit 1
fi
# Create local databases
# MySQL (service provided)
mysql --version
Expand Down
8 changes: 7 additions & 1 deletion bin/ci/script.sh
Expand Up @@ -2,6 +2,11 @@
# Run script actions for SOCI build at travis-ci.org
# Mateusz Loskot <mateusz@loskot.net>, http://github.com/SOCI
#
set -e
if [[ "$TRAVIS" != "true" ]] ; then
echo_err "Running this script makes no sense outside of travis-ci.org"
exit 1
fi
# Build SOCI using CMake (primary build configuration)
mkdir -p src/_build
cd src/_build
Expand All @@ -10,11 +15,12 @@ cmake \
-DSOCI_EMPTY_TEST_CONNSTR:STRING="dummy connection" \
-DSOCI_FIREBIRD_TEST_CONNSTR:STRING="service=LOCALHOST:/tmp/soci_test.fdb user=SYSDBA password=masterkey" \
-DSOCI_MYSQL_TEST_CONNSTR:STRING="db=soci_test" \
-DSOCI_ORACLE_TEST_CONNSTR:STRING="service=brzuchol.loskot.net user=soci_tester password=soci_secret" \
-DSOCI_POSTGRESQL_TEST_CONNSTR:STRING="dbname=soci_test user=postgres" \
-DSOCI_SQLITE3_TEST_CONNSTR:STRING="soci_test.db" \
-DSOCI_ODBC_TEST_POSTGRESQL_CONNSTR="FILEDSN=${PWD}/../backends/odbc/test/test-postgresql.dsn;" \
-DSOCI_ODBC_TEST_MYSQL_CONNSTR="FILEDSN=${PWD}/../backends/odbc/test/test-mysql.dsn;" \
..
cmake --build .
# Run tests
ctest -V --output-on-failure .
#ctest -V --output-on-failure .

0 comments on commit 94987de

Please sign in to comment.