blob: 7322a5fb10ae81b60580e1c7d50d7cbba1f5cbdb (
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
|
version: 2
jobs:
build:
docker:
- image: nixorg/nix:circleci
steps:
- checkout
- restore_cache:
key: stack-deps-{{ checksum "stack.yaml" }}
- run:
name: Install stack
command: nix-env -f https://github.com/nixos/nixpkgs/archive/54ade273e7a677ec35e501174d86d253d9d8dede.tar.gz -i stack
- run:
name: Setup build toolchain
command: stack --nix setup
- run:
name: Building dependencies
command: stack --nix test --only-snapshot --prefetch
- save_cache:
paths:
- "~/.stack"
key: stack-deps-{{ checksum "stack.yaml" }}
- run:
name: Building
command: stack --nix build --pedantic
- run:
name: Building tests
command: stack --nix test --pedantic --no-run-tests
- run:
name: Running tests
command: stack --nix test
|