test/travis: move travis scripts to tests/travis ( Closes #20 )
[sip-router] / test / travis / databases_travis.sh
1 #!/bin/bash
2 # create MySQL and PostgreSQL kamailio databases
3
4 cd utils/kamctl
5 PWSKIP=yes CHARSET=latin1 DBENGINE=MYSQL DBNAME=kamailio INSTALL_EXTRA_TABLES=yes \
6   INSTALL_PRESENCE_TABLES=yes INSTALL_DBUID_TABLES=yes \
7   ./kamdbctl create
8 touch ~/.pgpass; chmod 600 ~/.pgpass
9 PWSKIP=yes DBENGINE=PGSQL DBNAME=kamailio INSTALL_EXTRA_TABLES=yes \
10   INSTALL_PRESENCE_TABLES=yes INSTALL_DBUID_TABLES=yes \
11   ./kamdbctl create