From eb7f39f0aaf3b3e65e783ba317d35ccb6c7e6f4c Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Wed, 14 Aug 2019 00:45:26 +0200 Subject: gitlab-ci: add test stage --- .gitlab-ci.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 18f19731e53..2fe0352bbc5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,18 @@ image: nixos/nix:latest -pages: +stages: + - test + - deploy + +Run tests: + stage: test + script: + - nix-shell tests -A run.all + only: + - master + +Deploy manual: + stage: deploy script: - mkdir -p ~/.config/nixpkgs - echo '{ manual.html.enable = true; }' > ~/.config/nixpkgs/home.nix -- cgit v1.2.3