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 @@
0
+#!/bin/bash
1
+# create MySQL and PostgreSQL kamailio databases
2
+
3
+cd utils/kamctl
4
+PWSKIP=yes CHARSET=latin1 DBENGINE=MYSQL DBNAME=kamailio INSTALL_EXTRA_TABLES=yes \
5
+  INSTALL_PRESENCE_TABLES=yes INSTALL_DBUID_TABLES=yes \
6
+  ./kamdbctl create
7
+touch ~/.pgpass; chmod 600 ~/.pgpass
8
+PWSKIP=yes DBENGINE=PGSQL DBNAME=kamailio INSTALL_EXTRA_TABLES=yes \
9
+  INSTALL_PRESENCE_TABLES=yes INSTALL_DBUID_TABLES=yes \
10
+  ./kamdbctl create