summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2019-01-02 12:47:05 +0100
committerGitHub <noreply@github.com>2019-01-02 12:47:05 +0100
commit6ad78322afd09c55198ee70cc7da610dc5979eb4 (patch)
treee18d409943d4b1041dcfbc85615e056291720669
parent75db9f48d699d866e19f408d057f486175127e4a (diff)
downloadstylish-haskell-6ad78322afd09c55198ee70cc7da610dc5979eb4.tar.gz
Tweak CircleCI config
-rw-r--r--.circleci/config.yml18
1 files changed, 6 insertions, 12 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 3845c0e..e6a538c 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -17,21 +17,15 @@ jobs:
steps:
- checkout
- restore_cache:
- key: 'v1-stylish-haskell-{{ arch }}-{{ .Branch }}'
+ key: 'v2-stylish-haskell-{{ arch }}-{{ .Branch }}'
- run:
- name: 'Update cabal indices'
- command: 'cabal update'
- - run:
- name: 'Build and install'
- command: 'cabal install --enable-tests --jobs=1'
- - run:
- name: 'Run tests'
- command: 'cabal test'
+ name: 'Build, install and test'
+ command: 'stack build --test --copy-bins --jobs=1'
- save_cache:
- key: 'v1-stylish-haskell-{{ arch }}-{{ .Branch }}-{{ .Revision }}'
+ key: 'v2-stylish-haskell-{{ arch }}-{{ .Branch }}-{{ .Revision }}'
paths:
- - '~/.cabal'
- - '~/.ghc'
+ - '~/.stack-work'
+ - '~/.stack'
- run:
name: 'Upload release'
command: '.circleci/release.sh "$CIRCLE_TAG"'