From 4ffd9c9e9956fea08e5e30a1c67d5407561a5335 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=98yvind=20gjesdal?= <oyvind.gjesdal@uib.no>
Date: Tue, 7 Sep 2021 20:05:03 +0200
Subject: [PATCH] add CI for publising lodspeakr to marcus test, checking out
 current SHA and running composer

---
 .gitlab-ci.yml | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 00000000..211fa57f
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,18 @@
+stages:
+- marcus_test
+
+marcus_test:
+  variables:
+    MARCUS_SERVER: $MARCUS_TEST_SERVER_IPV6
+  image: oyvindlg/gitlab-ci-library:ansible-cgi
+  stage: "marcus_test"
+  before_script:
+  - eval $(ssh-agent -s)
+  - echo $MARCUS_TEST_KEY | base64 --decode | ssh-add -
+
+ script:
+  - echo "debug"
+  - ssh -6 -o "StrictHostKeyChecking=no" $MARCUS_USER@$MARCUS_SERVER "cd $MARCUS_HOME && git fetch && git checkout $CI_COMMIT_SHA && composer install --no-dev"
+  tags:
+  - spes
+
-- 
GitLab