From 7193b651ecd90bea5e962e56d8bc43edbfc8657d Mon Sep 17 00:00:00 2001 From: Semyon Bezrukov Date: Thu, 4 Jun 2020 17:24:07 +0300 Subject: [PATCH] Add test for Integration Edition (#256) * Add test for Integration Edition * Add test for Community Edition * Fix tests for redis * Fix edition test * Rename test --- .travis.yml | 13 ++++++++++++- tests/redis.yml | 2 ++ tests/standalone.yml | 12 ++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 tests/standalone.yml diff --git a/.travis.yml b/.travis.yml index 94a1ff0..6018474 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,13 @@ language: generic dist: trusty env: + # community edition + - config: standalone.yml + + # integration edition + - config: standalone.yml + PRODUCT_NAME: documentserver-ie + # certificates (default tls if onlyoffice not exists) - config: certs.yml ssl: true @@ -52,9 +59,13 @@ env: # rabbitmq old variables - config: rabbitmq-old.yml - # redis + # redis with community edition - config: redis.yml + # redis with integraion edition + - config: redis.yml + PRODUCT_NAME: documentserver-ie + services: - docker diff --git a/tests/redis.yml b/tests/redis.yml index 9405b72..5f759ad 100644 --- a/tests/redis.yml +++ b/tests/redis.yml @@ -4,6 +4,8 @@ services: container_name: onlyoffice-documentserver build: context: ../. + args: + - PRODUCT_NAME=${PRODUCT_NAME:-documentserver} environment: - REDIS_SERVER_HOST=${REDIS_SERVER_HOST:-onlyoffice-redis} - REDIS_SERVER_PORT=${REDIS_SERVER_PORT:-6379} diff --git a/tests/standalone.yml b/tests/standalone.yml new file mode 100644 index 0000000..f3de32f --- /dev/null +++ b/tests/standalone.yml @@ -0,0 +1,12 @@ +version: '2.1' +services: + onlyoffice-documentserver: + container_name: onlyoffice-documentserver + build: + context: ../. + args: + - PRODUCT_NAME=${PRODUCT_NAME:-documentserver} + stdin_open: true + restart: always + ports: + - '80:80'