blob: 1433417936c2b64d7c2622bf16a779c67b4f402b (
plain)
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
|
version: 2
jobs:
build:
docker:
- image: terrorjack/vanilla:haskell
steps:
- checkout
- restore_cache:
key: stack-deps-eek-{{ checksum "stack.yaml" }}
- run:
name: Update packages
command: nix-channel --update
- run:
name: Building dependencies
shell: /bin/bash -eilo pipefail
command: |
nix-env -f nixpkgs.nix -iA stack
stack --nix --no-terminal --nix build --only-snapshot --prefetch --no-haddock --test --bench --jobs=1
- save_cache:
paths:
- "~/.stack"
key: stack-deps-eek-{{ checksum "stack.yaml" }}
- run:
name: Building
shell: /bin/bash -eilo pipefail
command: |
stack --nix --no-terminal --nix build --pedantic
- run:
name: Building tests
shell: /bin/bash -eilo pipefail
command: |
stack --nix test --pedantic --no-run-tests
- run:
name: Running tests
shell: /bin/bash -eilo pipefail
command: |
stack --nix test
|