summaryrefslogtreecommitdiff
path: root/.circleci/config.yml
diff options
context:
space:
mode:
Diffstat (limited to '.circleci/config.yml')
-rw-r--r--.circleci/config.yml29
1 files changed, 14 insertions, 15 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 61d0c5a..68fa538 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -2,33 +2,32 @@ version: 2
2jobs: 2jobs:
3 build: 3 build:
4 docker: 4 docker:
5 - image: fpco/stack-build 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-eek-{{ checksum "stack.yaml" }}
10 - run: 10 - run:
11 name: Setup build toolchain 11 name: Update packages
12 command: stack setup 12 command: nix-channel --update
13 - run: 13 - run:
14 name: Building dependencies 14 name: Building dependencies
15 command: stack test --only-snapshot --prefetch 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
16 - save_cache: 18 - save_cache:
17 paths: 19 paths:
18 - "~/.stack" 20 - "~/.stack"
19 key: stack-deps-{{ checksum "stack.yaml" }} 21 key: stack-deps-eek-{{ checksum "stack.yaml" }}
20 - run:
21 name: Set up apt
22 command: apt update
23 - run:
24 name: Installing C packages
25 command: apt -y install libglpk-dev
26 - run: 22 - run:
27 name: Building 23 name: Building
28 command: stack build --pedantic 24 command: |
25 stack --nix --no-terminal --nix build --pedantic
29 - run: 26 - run:
30 name: Building tests 27 name: Building tests
31 command: stack test --pedantic --no-run-tests 28 command: |
29 stack --nix test --pedantic --no-run-tests
32 - run: 30 - run:
33 name: Running tests 31 name: Running tests
34 command: stack test 32 command: |
33 stack --nix test