git.iko.soy/typeable/rollbar-hs
on master help sign in
Simplify CI

We don't really need to have separate caches. We fallback to the stack-root cache as it should have built most stuff. We can remove it in a future commit. It will have cached under the new key. We also can call one command, and let Make figure everything out.

commitb078be7bc5e105aef0a6eed82c218033bc3c8683 authorjoneshf <jones3.hardy@gmail.com> dateTue 24 Jul 2018, 23:23 (8 years ago) parenta53fe52
1 file changed+9−22
.circleci/config.yml+9−22
.circleci/config.yml+9−22
@@ -1,38 +1,25 @@
11version: 2
22jobs:
3− build:
3+ test:
44 docker:
55 - image: haskell:8.2.2
66 steps:
77 - checkout
88 - restore_cache:
99 keys:
10+ - v1-stack-{{ checksum "package.yaml" }}-{{ checksum "stack.yaml" }}
11+ - v1-stack-{{ checksum "package.yaml" }}-
12+ - v1-stack-
1013 - v1-stack-root-{{ checksum "package.yaml" }}-{{ checksum "stack.yaml" }}
1114 - v1-stack-root-{{ checksum "package.yaml" }}-
1215 - v1-stack-root-
13− name: Restoring stack root cache
14− - restore_cache:
15− keys:
16− - v1-stack-work-{{ checksum "package.yaml" }}-{{ checksum "stack.yaml" }}
17− - v1-stack-work-{{ checksum "package.yaml" }}-
18− - v1-stack-work-
19− name: Restoring stack work cache
20− - run:
21− name: Setup
22− command: stack setup
23− - run:
24− name: Build
25− command: stack build --no-run-tests --test
16+ name: Restoring stack cache
2617 - run:
2718 name: Test
28− command: stack test
19+ command: make test
2920 - save_cache:
30− key: v1-stack-root-{{ checksum "package.yaml" }}-{{ checksum "stack.yaml" }}
31− name: Caching stack root
32− paths:
33− - /root/.stack
34− - save_cache:
35− key: v1-stack-work-{{ checksum "package.yaml" }}-{{ checksum "stack.yaml" }}
36− name: Caching stack work
21+ key: v1-stack-{{ checksum "package.yaml" }}-{{ checksum "stack.yaml" }}
22+ name: Caching stack
3723 paths:
3824 - .stack-work
25+ - /root/.stack