From 11d97f24c650b6a75ae3ae64689ff540590f0624 Mon Sep 17 00:00:00 2001
From: Mahmoud Ibrahim <mahmouim@stud.ntnu.no>
Date: Fri, 17 Apr 2020 21:13:50 +0200
Subject: [PATCH] test pipeline

---
 tests/.gitlab-ci.yml | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/tests/.gitlab-ci.yml b/tests/.gitlab-ci.yml
index fad0c53..b32d705 100644
--- a/tests/.gitlab-ci.yml
+++ b/tests/.gitlab-ci.yml
@@ -7,7 +7,8 @@ deploy:
     - touch ~/.ssh/id_rsa
     - chmod 600 ~/.ssh/id_rsa # Required permission by ssh
     - echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
-    - scp public/index.html app@10.0.2.15:app/public
+    - apt-get update
+    - apt-get install --assume-yes rsync
+    - rsync --archive --delete --exclude='.git' --exclude='node_modules' . app@10.0.2.15:app
   only:
-    - master
-
+    - master
\ No newline at end of file
-- 
GitLab