From 37c058d2810fcf0007fc8785a4ffea9667e9b892 Mon Sep 17 00:00:00 2001 From: Alexey Golubev Date: Mon, 16 Mar 2020 16:20:36 +0300 Subject: [PATCH] Add mariadb test --- .travis.yml | 6 ++++++ tests/mariadb.yml | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 tests/mariadb.yml diff --git a/.travis.yml b/.travis.yml index aad8a55..ef4bcd9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,6 +28,12 @@ env: DB_HOST: onlyoffice-mysql DB_PORT: 3306 + # mariadb + - config: mariadb.yml + DB_TYPE: mysql + DB_HOST: db + DB_PORT: 3306 + # activemq - config: activemq.yml AMQP_TYPE: activemq diff --git a/tests/mariadb.yml b/tests/mariadb.yml new file mode 100644 index 0000000..c243fb2 --- /dev/null +++ b/tests/mariadb.yml @@ -0,0 +1,35 @@ +version: '2' +services: + ds: + container_name: ds + image: onlyoffice/4testing-documentserver-ie:latest + depends_on: + - db + environment: + - DB_TYPE + - DB_HOST + - DB_PORT + - DB_NAME + - DB_USER + - DB_PWD + stdin_open: true + restart: always + ports: + - '80:80' + + db: + container_name: db + image: mariadb:10.5 + environment: + - MYSQL_DATABASE + - MYSQL_USER + - MYSQL_PASSWORD + - MYSQL_ALLOW_EMPTY_PASSWORD + restart: always + volumes: + - mysql_data:/var/lib/mysql + expose: + - '3306' + +volumes: + mysql_data: