[sr-dev] git:master:d9bf7559: travis-ci: create MySQL and PostgreSQL kamailio databases for testing
Victor Seva
linuxmaniac at torreviejawireless.org
Tue Jan 6 21:41:21 CET 2015
Module: kamailio
Branch: master
Commit: d9bf755921fb63bfeefa49efa87687740e5c82d0
URL: https://github.com/kamailio/kamailio/commit/d9bf755921fb63bfeefa49efa87687740e5c82d0
Author: Victor Seva <linuxmaniac at torreviejawireless.org>
Committer: Victor Seva <linuxmaniac at torreviejawireless.org>
Date: 2015-01-06T21:39:23+01:00
travis-ci: create MySQL and PostgreSQL kamailio databases for testing
---
Added: pkg/kamailio/deb/databases_travis.sh
Modified: .travis.yml
---
Diff: https://github.com/kamailio/kamailio/commit/d9bf755921fb63bfeefa49efa87687740e5c82d0.diff
Patch: https://github.com/kamailio/kamailio/commit/d9bf755921fb63bfeefa49efa87687740e5c82d0.patch
---
diff --git a/.travis.yml b/.travis.yml
index ecd40fd..0056086 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -6,6 +6,7 @@ before_install:
- sudo apt-get update -qq
- sudo apt-get install -y gdebi-core
- sudo pkg/kamailio/deb/build_deps.sh precise $TRAVIS_BUILD_DIR
+ - ./pkg/kamailio/deb/databases_travis.sh
script: ./pkg/kamailio/deb/build_travis.sh
branches:
only:
diff --git a/pkg/kamailio/deb/databases_travis.sh b/pkg/kamailio/deb/databases_travis.sh
new file mode 100755
index 0000000..0ee7213
--- /dev/null
+++ b/pkg/kamailio/deb/databases_travis.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+# create MySQL and PostgreSQL kamailio databases
+
+cd utils/kamctl
+PWSKIP=yes CHARSET=latin1 DBENGINE=MYSQL DBNAME=kamailio INSTALL_EXTRA_TABLES=yes \
+ INSTALL_PRESENCE_TABLES=yes INSTALL_DBUID_TABLES=yes \
+ ./kamdbctl create
+touch ~/.pgpass; chmod 600 ~/.pgpass
+PWSKIP=yes DBENGINE=PGSQL DBNAME=kamailio INSTALL_EXTRA_TABLES=yes \
+ INSTALL_PRESENCE_TABLES=yes INSTALL_DBUID_TABLES=yes \
+ ./kamdbctl create
More information about the sr-dev
mailing list