diff options
Diffstat (limited to '.circleci')
-rw-r--r-- | .circleci/config.yml | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml index 1f8e543..31cf89b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml | |||
@@ -2,31 +2,27 @@ version: 2 | |||
2 | jobs: | 2 | jobs: |
3 | build: | 3 | build: |
4 | docker: | 4 | docker: |
5 | - image: nixorg/nix:circleci | 5 | - image: terrorjack/vanilla:haskell |
6 | steps: | 6 | steps: |
7 | - checkout | 7 | - checkout |
8 | - restore_cache: | 8 | - restore_cache: |
9 | key: stack-deps-{{ checksum "stack.yaml" }} | 9 | key: stack-deps-{{ checksum "stack.yaml" }} |
10 | - run: | 10 | - run: |
11 | name: Install Stack | ||
12 | command: | | ||
13 | nix-env -f nixpkgs.nix -iA stack | ||
14 | - run: | ||
15 | name: Setup build toolchain | 11 | name: Setup build toolchain |
16 | command: stack --nix setup | 12 | command: stack setup |
17 | - run: | 13 | - run: |
18 | name: Building dependencies | 14 | name: Building dependencies |
19 | command: stack --nix test --only-snapshot --prefetch | 15 | command: stack test --only-snapshot --prefetch |
20 | - save_cache: | 16 | - save_cache: |
21 | paths: | 17 | paths: |
22 | - "~/.stack" | 18 | - "~/.stack" |
23 | key: stack-deps-{{ checksum "stack.yaml" }} | 19 | key: stack-deps-{{ checksum "stack.yaml" }} |
24 | - run: | 20 | - run: |
25 | name: Building | 21 | name: Building |
26 | command: stack --nix build --pedantic | 22 | command: stack build --pedantic |
27 | - run: | 23 | - run: |
28 | name: Building tests | 24 | name: Building tests |
29 | command: stack --nix test --pedantic --no-run-tests | 25 | command: stack test --pedantic --no-run-tests |
30 | - run: | 26 | - run: |
31 | name: Running tests | 27 | name: Running tests |
32 | command: stack --nix test | 28 | command: stack test |