Skip to content

Commit 6ad7832

Browse files
authored
Tweak CircleCI config
1 parent 75db9f4 commit 6ad7832

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

.circleci/config.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,15 @@ jobs:
1717
steps:
1818
- checkout
1919
- restore_cache:
20-
key: 'v1-stylish-haskell-{{ arch }}-{{ .Branch }}'
20+
key: 'v2-stylish-haskell-{{ arch }}-{{ .Branch }}'
2121
- run:
22-
name: 'Update cabal indices'
23-
command: 'cabal update'
24-
- run:
25-
name: 'Build and install'
26-
command: 'cabal install --enable-tests --jobs=1'
27-
- run:
28-
name: 'Run tests'
29-
command: 'cabal test'
22+
name: 'Build, install and test'
23+
command: 'stack build --test --copy-bins --jobs=1'
3024
- save_cache:
31-
key: 'v1-stylish-haskell-{{ arch }}-{{ .Branch }}-{{ .Revision }}'
25+
key: 'v2-stylish-haskell-{{ arch }}-{{ .Branch }}-{{ .Revision }}'
3226
paths:
33-
- '~/.cabal'
34-
- '~/.ghc'
27+
- '~/.stack-work'
28+
- '~/.stack'
3529
- run:
3630
name: 'Upload release'
3731
command: '.circleci/release.sh "$CIRCLE_TAG"'

0 commit comments

Comments
 (0)