git.iko.soy/typeable/rollbar-hs
on master help sign in
Update CI configuration
038c284joneshf
.circleci/config.yml+13−16
@@ -2,39 +2,37 @@ version: 2
2jobs:
2jobs:
3 compile:
3 compile:
4 docker:
4 docker:
5− - image: haskell:8.2.2
5+ - image: nixorg/nix:circleci
6 steps:
6 steps:
7 - checkout
7 - checkout
8 - restore_cache:
8 - restore_cache:
9 keys:
9 keys:
10− - v1-stack-{{ checksum "package.yaml" }}-{{ checksum "stack.yaml" }}
10+ - v1-nix-{{ checksum "package.yaml" }}
11− - v1-stack-{{ checksum "package.yaml" }}-
11+ - v1-nix-
12− - v1-stack-
13 name: Restoring stack cache
12 name: Restoring stack cache
14 - run:
13 - run:
15 name: Compile
14 name: Compile
16− command: make build
15+ command: nix-shell --run 'make build'
17 - persist_to_workspace:
16 - persist_to_workspace:
18 root: .
17 root: .
19 paths:
18 paths:
20 - dist
19 - dist
21 - save_cache:
20 - save_cache:
22− key: v1-stack-{{ checksum "package.yaml" }}-{{ checksum "stack.yaml" }}
21+ key: v1-nix-{{ checksum "package.yaml" }}
23− name: Caching stack
22+ name: Caching nix
24 paths:
23 paths:
25− - .stack-work
24+ - /nix
26− - /root/.stack
27
25
28 doc-test:
26 doc-test:
29 docker:
27 docker:
30− - image: haskell:8.2.2
28+ - image: nixorg/nix:circleci
31 steps:
29 steps:
32 - checkout
30 - checkout
33 - attach_workspace:
31 - attach_workspace:
34 at: .
32 at: .
35 - run:
33 - run:
36 name: Doc test
34 name: Doc test
37− command: make test-doc-test
35+ command: nix-shell --run 'make test-doc-test'
38
36
39 for-github:
37 for-github:
40 docker:
38 docker:
@@ -46,18 +44,17 @@ jobs:
46
44
47 sdist:
45 sdist:
48 docker:
46 docker:
49− - image: haskell:8.2.2
47+ - image: nixorg/nix:circleci
50 steps:
48 steps:
51 - checkout
49 - checkout
52 - restore_cache:
50 - restore_cache:
53 keys:
51 keys:
54− - v1-stack-{{ checksum "package.yaml" }}-{{ checksum "stack.yaml" }}
52+ - v1-nix-{{ checksum "package.yaml" }}
55− - v1-stack-{{ checksum "package.yaml" }}-
53+ - v1-nix-
56− - v1-stack-
57 name: Restoring stack cache
54 name: Restoring stack cache
58 - run:
55 - run:
59 name: Build sdist
56 name: Build sdist
60− command: make sdist
57+ command: nix-shell --run 'make sdist'
61
58
62workflows:
59workflows:
63 version: 2
60 version: 2