From 1f3b80df5a6873ec820c43b802ab6dfc2451c256 Mon Sep 17 00:00:00 2001
From: Martin Teichmann <martin.teichmann@xfel.eu>
Date: Mon, 8 Feb 2021 15:41:21 +0000
Subject: [PATCH] add building documentation

this resurrects an old .gitlab-ci.yml, because I thought that's a
good idea event if it is ignored by github.
---
 .gitlab-ci.yml | 13 +++++++++++++
 known_hosts    |  1 +
 2 files changed, 14 insertions(+)
 create mode 100644 .gitlab-ci.yml
 create mode 100644 known_hosts

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..f09ebb0
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,13 @@
+test:
+    image: python:3.8-slim
+    script:
+        - python3 -m ebpfcat.ebpf_test -v Tests
+
+docs:
+    image: tk0miya/sphinx-html
+    script:
+        - sphinx-build -b html -d _build/doctrees . _build/html
+        - eval $(ssh-agent)
+        - echo "$SSHKEY" | ssh-add -
+        - ssh -o UserKnownHostsFile=known_hosts wp86team@exflqr30526 "./doc-prepare ec_$CI_COMMIT_REF_NAME"
+        - scp -o UserKnownHostsFile=known_hosts -r _build/html wp86team@exflqr30526:html/ec_$CI_COMMIT_REF_NAME
diff --git a/known_hosts b/known_hosts
new file mode 100644
index 0000000..8369beb
--- /dev/null
+++ b/known_hosts
@@ -0,0 +1 @@
+exflqr30526,131.169.220.113 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCcPp1A0EeC72+tSXKqfVfIlxAKq3Bp7CA2LfSbYD9hw4SKp6UhGcM8R5eQ5wnoMCoJ4IwqMqA0Mi24K9kgQxpAao6GOh3Yx+YznLtKGZRx3EYUM+9s+fDEzmZvymZF5aBqfwx6j1aUiSKciVbo/DNjU0PxuTjliicZqqOaaPVZPMHJA9GZuvwvfxcaFp8fDWAMSRKr01rihcJZljXLe8ZLBZTYt8i+W561WrgZiGztLxaBMT9o+MbEkHsUor5xBidW6NOH1TkQw3wiVp0vl6/ca9VskMIr3OuWCdce6YqR3GC3wBJMMgUeFxyKr3t0k1b4Voxbcy1dh0ObaFPniBAv
-- 
GitLab