summaryrefslogtreecommitdiff
path: root/.circleci/config.yml
diff options
context:
space:
mode:
Diffstat (limited to '.circleci/config.yml')
-rw-r--r--.circleci/config.yml33
1 files changed, 33 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
new file mode 100644
index 0000000..68fa538
--- /dev/null
+++ b/.circleci/config.yml
@@ -0,0 +1,33 @@
1version: 2
2jobs:
3 build:
4 docker:
5 - image: terrorjack/vanilla:haskell
6 steps:
7 - checkout
8 - restore_cache:
9 key: stack-deps-eek-{{ checksum "stack.yaml" }}
10 - run:
11 name: Update packages
12 command: nix-channel --update
13 - run:
14 name: Building dependencies
15 command: |
16 nix-env -f nixpkgs.nix -iA stack
17 stack --nix --no-terminal --nix build --only-snapshot --prefetch --no-haddock --test --bench --jobs=1
18 - save_cache:
19 paths:
20 - "~/.stack"
21 key: stack-deps-eek-{{ checksum "stack.yaml" }}
22 - run:
23 name: Building
24 command: |
25 stack --nix --no-terminal --nix build --pedantic
26 - run:
27 name: Building tests
28 command: |
29 stack --nix test --pedantic --no-run-tests
30 - run:
31 name: Running tests
32 command: |
33 stack --nix test