From 31d9b4b2aa596d2b78cd51942b6b77a11507e882 Mon Sep 17 00:00:00 2001 From: Dominic Steinitz Date: Wed, 4 Apr 2018 10:44:43 +0100 Subject: Make CI use nix --- .circleci/config.yml | 14 +++++++------- 1 file 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: steps: - checkout - restore_cache: - key: stack-deps-bar-{{ checksum "stack.yaml" }} + key: stack-deps-urk-{{ checksum "stack.yaml" }} - run: name: Update packages command: nix-channel --update - run: name: Setup build toolchain - command: stack setup + command: nix-shell --run "stack setup" - run: name: Building dependencies - command: stack test --only-snapshot --prefetch + command: nix-shell --run "stack test --only-snapshot --prefetch" - save_cache: paths: - "~/.stack" - key: stack-deps-bar-{{ checksum "stack.yaml" }} + key: stack-deps-urk-{{ checksum "stack.yaml" }} - run: name: Building - command: stack build --pedantic + command: nix-shell --run "stack build --pedantic" - run: name: Building tests - command: stack test --pedantic --no-run-tests + command: nix-shell --run "stack test --pedantic --no-run-tests" - run: name: Running tests - command: stack test + command: nix-shell --run "stack test" -- cgit v1.2.3