From 5cfc9fed7974e7fd24f9fa06f9d712ea196ced86 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Wed, 13 May 2020 23:42:02 +0200 Subject: [PATCH] gitlab-ci: minor test job improvements Specifically, - add code format checking and - run tests in a pure shell. --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fd1870cc..3f54fde3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,7 +11,8 @@ stages: Run tests: stage: test script: - - nix-shell tests -A run.files-text + - ./format -c && echo Format is OK + - nix-shell --pure tests -A run.files-text rules: - if: $CI_COMMIT_BRANCH == "master" when: always