-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
41 lines (34 loc) · 874 Bytes
/
.gitlab-ci.yml
File metadata and controls
41 lines (34 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
- check
- build
image: registry.gitlab.com/matrixai/engineering/maintenance/gitlab-runner
hlint:
stage: check
script:
- nix-shell --run 'hlint lint ./src ./app ./test'
brittany:
stage: check
script:
- nix-shell --run "find ./src ./app ./test -type f -name '*.hs' -print0 | xargs -0 -I{} sh -c 'brittany --check-mode \"{}\" || echo \"{}\"; exit 1'"
test:
stage: check
script:
- nix-shell --run 'cabal v2-test'
nix-dry:
stage: check
script:
- nix-build -v -v --dry-run ./release.nix --attr library
- nix-build -v -v --dry-run ./release.nix --attr application
- nix-build -v -v --dry-run ./release.nix --attr docker
nix:
stage: build
script:
- >
nix-build ./release.nix
--attr library
--attr application
--attr docker
only:
- master