From 09335011a2eb4e0f0b97b22a158524bc25a7df8a Mon Sep 17 00:00:00 2001
From: Mussab Abdalla <mussab.abdalla@eox.at>
Date: Fri, 21 Feb 2020 11:06:28 +0100
Subject: [PATCH] variables setup

---
 .gitlab-ci.yml | 2 ++
 env_setup.sh   | 4 ++++
 2 files changed, 6 insertions(+)
 create mode 100644 env_setup.sh

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c83ead0e..9531a957 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -85,6 +85,8 @@ test:
     - apk add --update py-pip
     - pip install -r requirements.txt
     - pytest
+    - chmod +x env_setup.sh
+    - ./env_setup.sh
     - docker stack deploy -c docker-compose.vhr18.yml -c docker-compose.vhr18.dev.yml vhr18-pvs
     - docker exec -it $(docker ps -qf "name=vhr18-pvs_renderer") python3 /var/www/pvs/dev/pvs_instance/manage.py id list
   # after_script:
diff --git a/env_setup.sh b/env_setup.sh
new file mode 100644
index 00000000..54950493
--- /dev/null
+++ b/env_setup.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+cat vhr18_db > env/vhr18_db.env
+cat vhr18_django > env vhr18_django.env
+cat vhr_obs > vhr_obs.env
-- 
GitLab