[icinga-checkins] icinga.org: icingaweb2-module-director/travis: WIP: test with travis

git at icinga.org git at icinga.org
Tue Nov 29 10:06:52 CET 2016


Module: icingaweb2-module-director
Branch: travis
Commit: dfd3b8b080588dcf42c4b70c656993dd4d8f84fb
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=dfd3b8b080588dcf42c4b70c656993dd4d8f84fb

Author: Markus Frosch <markus.frosch at icinga.com>
Date:   Tue Nov 29 09:51:09 2016 +0100

WIP: test with travis

---

 .travis.yml |   30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..74a32d2
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,30 @@
+language: php
+php:
+#  - '5.3'
+#  - '5.4'
+#  - '5.5'
+#  - '5.6'
+  - '7.0'
+
+services:
+  - mysql
+  - postgresql
+
+cache:
+  directories:
+    - vendor
+
+env:
+  - DB=mysql DIRECTOR_TESTDB_RES="Director MySQL TestDB" DIRECTOR_TESTDB="director_test"
+  - DB=pgsql DIRECTOR_TESTDB_RES="Director PostgreSQL TestDB" DIRECTOR_TESTDB="director_test"
+    DIRECTOR_TESTDB_USER="director_test"
+
+before_script:
+  - sh -c '[ "$DB" = mysql ] && mysql -u root -e "CREATE DATABASE ${DIRECTOR_TESTDB};"'
+  - sh -c '[ "$DB" = pgsql ] && psql postgres -q -c "CREATE DATABASE ${DIRECTOR_TESTDB} WITH ENCODING UTF8;"
+  - sh -c '[ "$DB" = pgsql ] && psql "${DIRECTOR_TESTDB}" -q -c "
+      CREATE USER ${DIRECTOR_TESTDB_USER} WITH PASSWORD \'testing\';
+      GRANT ALL PRIVILEGES ON DATABASE ${DIRECTOR_TESTDB} TO ${DIRECTOR_TESTDB_USER};
+      CREATE EXTENSION pgcrypto;"
+    '
+  - composer install



More information about the icinga-checkins mailing list