Hi,

I need to install and configure Firebird to build and
test my C++ project on the continous integration service
at https://travis-ci.org/
The system is based on Linux (Debian).

Unlike for MySQL or PostgreSQL, travis-ci.org does not provide
pre-configured Firebird support, though its status is unclear [1].

The problem is that I can not perform any interactive configuration
steps. Namely, I can not issue the command required by canonical
Firebird installation:

sudo dpkg-reconfigure firebird2.5-super

My first question is, how can I install, configure and run Firebird
without interactive steps?

I have found that someone asked similar question to mine,
followed with suggestion to set ENABLE_FIREBIRD_SERVER in 
/etc/default/firebird2.5 file [2].
Then, my travis.yml config file [3] can execute:

sed /ENABLE_FIREBIRD_SERVER=/s/no/yes/ -i /etc/default/firebird2.5

Is this the recommended way to do it?

Next, I will have to create a new empty database which tests runner
will connect to, using required connection string,
and run tests against the database.

What's the recommended way to create a database non-interactively?

Ideally, if no password is required, and tests runner can connect
in non-interactive way.
Similarly to PostgreSQL, where I simply feed it with minimal
connection string "dbname=test".

I'd appreciate any guidelines.

[1] https://groups.google.com/d/topic/travis-ci/UxlnE5t9sTE/discussion
[2] http://tech.groups.yahoo.com/group/firebird-support/message/117774
[3] https://github.com/SOCI/soci/blob/master/.travis.yml

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net

Reply via email to