From 6ad78322afd09c55198ee70cc7da610dc5979eb4 Mon Sep 17 00:00:00 2001 From: Jasper Van der Jeugt Date: Wed, 2 Jan 2019 12:47:05 +0100 Subject: Tweak CircleCI config --- .circleci/config.yml | 18 ++++++------------ 1 file 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"' -- cgit v1.2.3