From 07d8fa79e53b400e260b5776f57355fd5ba71d20 Mon Sep 17 00:00:00 2001
From: Piotr Gawron <piotr.gawron@uni.lu>
Date: Mon, 10 Sep 2018 23:55:30 +0200
Subject: [PATCH] backend continous integration tests

---
 .gitignore     |  1 +
 .gitlab-ci.yml | 14 ++++++++++++++
 2 files changed, 15 insertions(+)

diff --git a/.gitignore b/.gitignore
index 5f2ce9bf39..6abaaa4477 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
 annotation/minerva-big/
+builds/
 debian/src/
 debian/minerva*
 debian/src/*.sql
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8383e8cfda..87436b0f65 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -12,6 +12,20 @@ test_frontend:
     - npm install  
     - npm test
 
+test_backend:
+  variables:
+    POSTGRES_DB: map_viewer
+    POSTGRES_USER: map_viewer
+    POSTGRES_PASSWORD: 123qweasdzxc
+  image: debian
+  services:
+    - postgres:latest
+  stage: test
+  script:
+    - sudo apt-get update
+    - sudo apt-get install -y openjdk-8-jdk maven
+    - mvn test
+
 build_war:
   image: debian
   stage: build
-- 
GitLab