diff options
-rw-r--r-- | .circleci/config.yml | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml index acc84ec..1433417 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml | |||
@@ -6,27 +6,33 @@ jobs: | |||
6 | steps: | 6 | steps: |
7 | - checkout | 7 | - checkout |
8 | - restore_cache: | 8 | - restore_cache: |
9 | key: stack-deps-urk-{{ checksum "stack.yaml" }} | 9 | key: stack-deps-eek-{{ checksum "stack.yaml" }} |
10 | - run: | 10 | - run: |
11 | name: Update packages | 11 | name: Update packages |
12 | command: nix-channel --update | 12 | command: nix-channel --update |
13 | - run: | 13 | - run: |
14 | name: Setup build toolchain | ||
15 | command: nix-shell --run "stack setup" | ||
16 | - run: | ||
17 | name: Building dependencies | 14 | name: Building dependencies |
18 | command: nix-shell --run "stack test --only-snapshot --prefetch" | 15 | shell: /bin/bash -eilo pipefail |
16 | command: | | ||
17 | nix-env -f nixpkgs.nix -iA stack | ||
18 | stack --nix --no-terminal --nix build --only-snapshot --prefetch --no-haddock --test --bench --jobs=1 | ||
19 | - save_cache: | 19 | - save_cache: |
20 | paths: | 20 | paths: |
21 | - "~/.stack" | 21 | - "~/.stack" |
22 | key: stack-deps-urk-{{ checksum "stack.yaml" }} | 22 | key: stack-deps-eek-{{ checksum "stack.yaml" }} |
23 | - run: | 23 | - run: |
24 | name: Building | 24 | name: Building |
25 | command: nix-shell --run "stack build --pedantic" | 25 | shell: /bin/bash -eilo pipefail |
26 | command: | | ||
27 | stack --nix --no-terminal --nix build --pedantic | ||
26 | - run: | 28 | - run: |
27 | name: Building tests | 29 | name: Building tests |
28 | command: nix-shell --run "stack test --pedantic --no-run-tests" | 30 | shell: /bin/bash -eilo pipefail |
31 | command: | | ||
32 | stack --nix test --pedantic --no-run-tests | ||
29 | - run: | 33 | - run: |
30 | name: Running tests | 34 | name: Running tests |
31 | command: nix-shell --run "stack test" | 35 | shell: /bin/bash -eilo pipefail |
36 | command: | | ||
37 | stack --nix test | ||
32 | 38 | ||