From 4545ed61bca065887004f7c64fce47e2337bf9c0 Mon Sep 17 00:00:00 2001
From: Sebastian Hahta <joseha@utu.fi>
Date: Fri, 13 Dec 2019 11:11:58 +0200
Subject: [PATCH] Update .gitlab-ci.yml

---
 .gitlab-ci.yml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5a81ac8cb..0870eb871 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -28,6 +28,10 @@ linux:
     - cmake .. -DWITH_OPTFLOW=TRUE -DBUILD_CALIBRATION=TRUE -DCMAKE_BUILD_TYPE=Release
     - make
     - ctest --output-on-failure
+    - cd ..
+    - browserify web-service/public/js/index.js -o web-service/public/js/bundle.js
+    - rsync -vr --delete web-service/ nodejs@ftlab.utu.fi:/srv/nodejs/web-service
+    - ssh nodejs@ftlab.utu.fi -- "npm install web-service/server && pm2 restart web-service"
 
 windows:
   stage: all
-- 
GitLab