summaryrefslogtreecommitdiff
path: root/.circleci/config.yml
blob: acc84ec93033863ad2e326828b126adfc9681060 (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
version: 2
jobs:
  build:
    docker:
      - image: terrorjack/vanilla:haskell
    steps:
      - checkout
      - restore_cache:
          key: stack-deps-urk-{{ checksum "stack.yaml" }}
      - run:
          name: Update packages
          command: nix-channel --update
      - run:
          name: Setup build toolchain
          command: nix-shell --run "stack setup"
      - run:
          name: Building dependencies
          command: nix-shell --run "stack test --only-snapshot --prefetch"
      - save_cache:
          paths:
            - "~/.stack"
          key: stack-deps-urk-{{ checksum "stack.yaml" }}
      - run:
          name: Building
          command: nix-shell --run "stack build --pedantic"
      - run:
          name: Building tests
          command: nix-shell --run "stack test --pedantic --no-run-tests"
      - run:
          name: Running tests
          command: nix-shell --run "stack test"