From 95ec4d6b0df108c8cae67f7d6cef843eec635189 Mon Sep 17 00:00:00 2001 From: Parthiv Seetharaman Date: Sat, 5 Feb 2022 21:19:42 -0800 Subject: add gitlab ci to run flake check --- .gitlab-ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .gitlab-ci.yml (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..1a27ed3 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,15 @@ +default: + image: nixos/nix:2.6.0 + before_script: + - mkdir -p ~/.config/nix/ + - echo "experimental-features = flakes nix-command" >> ~/.config/nix/nix.conf + - echo "accept-flake-config = true" >> ~/.config/nix/nix.conf + - echo "extra-system-features = kvm" >> ~/.config/nix/nix.conf + +check: + only: + - branches + - tags + - merge_requests + script: + - nix flake check -- cgit v1.2.3