From c5ae654b055981e19e06e8a6459b4d4ae2243790 Mon Sep 17 00:00:00 2001
From: Florian Sesser <florian@privatestorage.io>
Date: Fri, 12 Mar 2021 21:13:21 +0000
Subject: [PATCH] Add GitLab CI config

Not doing artifacts as of now since they are weird in GitLab CI and screw up NixOs building
---
 .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 00000000..8f0b2f06
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,16 @@
+docs:
+  stage: build
+  script:
+    - nix-shell --run 'nix-build docs.nix'
+
+unit-tests:
+  stage: test
+  script:
+    - nix-shell --run 'nix-build nixos/unit-tests.nix' && cat result
+
+system-tests:
+  stage: test
+  timeout: 3 hours
+  script:
+    - nix-shell --run 'nix-build nixos/system-tests.nix'
+
-- 
GitLab