Browse code

travis-ci: create MySQL and PostgreSQL kamailio databases for testing

Victor Seva authored on 06/01/2015 10:30:02
Showing 2 changed files
... ...
@@ -6,6 +6,7 @@ before_install:
6 6
   - sudo apt-get update -qq
7 7
   - sudo apt-get install -y gdebi-core
8 8
   - sudo pkg/kamailio/deb/build_deps.sh precise $TRAVIS_BUILD_DIR
9
+  - ./pkg/kamailio/deb/databases_travis.sh
9 10
 script: ./pkg/kamailio/deb/build_travis.sh
10 11
 branches:
11 12
   only:
12 13
new file mode 100755
... ...
@@ -0,0 +1,11 @@
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