From b8379e44f01a1ebfa9483da7f580d4938eca1313 Mon Sep 17 00:00:00 2001
From: Martin Teichmann <martin.teichmann@gmail.com>
Date: Sun, 12 Feb 2023 08:14:17 +0000
Subject: [PATCH] make tests work on gitlab again

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..f86292f
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,16 @@
+test:
+    image: python:3.8-slim
+    script:
+        - python3 -m ebpfcat.ebpf_test -v Tests && python3 -m ebpfcat.ethercat_test -v
+
+docs:
+    image: sphinxdoc/sphinx
+    script:
+        - apt-get update
+        - apt-get install -y openssh-client
+        - pip3 install . --user
+        - 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
-- 
GitLab