summaryrefslogtreecommitdiff
path: root/.circleci
diff options
context:
space:
mode:
authorDominic Steinitz <dominic@steinitz.org>2018-04-04 10:44:43 +0100
committerDominic Steinitz <dominic@steinitz.org>2018-04-04 10:44:43 +0100
commit31d9b4b2aa596d2b78cd51942b6b77a11507e882 (patch)
tree3fb85715392fe0b7e987e9de65199dcfc52ab108 /.circleci
parent4b0e6a935aabe2c12600d9d63dd5234681481459 (diff)
Make CI use nix
Diffstat (limited to '.circleci')
-rw-r--r--.circleci/config.yml14
1 files changed, 7 insertions, 7 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 19a4f3f..30ea577 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -6,26 +6,26 @@ jobs:
6 steps: 6 steps:
7 - checkout 7 - checkout
8 - restore_cache: 8 - restore_cache:
9 key: stack-deps-bar-{{ checksum "stack.yaml" }} 9 key: stack-deps-urk-{{ 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 14 name: Setup build toolchain
15 command: stack setup 15 command: nix-shell --run "stack setup"
16 - run: 16 - run:
17 name: Building dependencies 17 name: Building dependencies
18 command: stack test --only-snapshot --prefetch 18 command: nix-shell --run "stack test --only-snapshot --prefetch"
19 - save_cache: 19 - save_cache:
20 paths: 20 paths:
21 - "~/.stack" 21 - "~/.stack"
22 key: stack-deps-bar-{{ checksum "stack.yaml" }} 22 key: stack-deps-urk-{{ checksum "stack.yaml" }}
23 - run: 23 - run:
24 name: Building 24 name: Building
25 command: stack build --pedantic 25 command: nix-shell --run "stack build --pedantic"
26 - run: 26 - run:
27 name: Building tests 27 name: Building tests
28 command: stack test --pedantic --no-run-tests 28 command: nix-shell --run "stack test --pedantic --no-run-tests"
29 - run: 29 - run:
30 name: Running tests 30 name: Running tests
31 command: stack test 31 command: nix-shell --run "stack test"