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

git at icinga.org git at icinga.org
Tue Nov 29 10:04:30 CET 2016


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

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

WIP: test with travis

---

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

diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..55fd4da
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,27 @@
+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:
+  - [ "$DB" = mysql ] && mysql -u root -e "CREATE DATABASE ${DIRECTOR_TESTDB};"
+  - [ "$DB" = pgsql ] && psql postgres -q -c "CREATE DATABASE ${DIRECTOR_TESTDB} WITH ENCODING 'UTF8';"
+  - [ "$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