aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorRobert Helgesson <robert@rycee.net>2020-05-13 23:42:02 +0200
committerRobert Helgesson <robert@rycee.net>2020-05-14 00:02:33 +0200
commit5cfc9fed7974e7fd24f9fa06f9d712ea196ced86 (patch)
tree9e8d3431c8dfd5561983ea58233603253532bca4 /.gitlab-ci.yml
parent40b1c5c448a7d71f723ec2d686efa86a679c5fdb (diff)
gitlab-ci: minor test job improvements
Specifically, - add code format checking and - run tests in a pure shell.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index fd1870ccff3..3f54fde3c9d 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