summaryrefslogtreecommitdiffhomepage
path: root/.circleci
diff options
context:
space:
mode:
authorJasper Van der Jeugt <m@jaspervdj.be>2017-12-26 12:09:26 +0100
committerJasper Van der Jeugt <m@jaspervdj.be>2017-12-26 12:34:33 +0100
commit51631e2d2d5b6b83f84917f36477dd79c3457ea2 (patch)
treecda6ff2fa16a15dac9f1908280d307aefafcff2d /.circleci
parentd628b839ef072611693b50b0ae1c57eba4ade8a6 (diff)
downloadstylish-haskell-51631e2d2d5b6b83f84917f36477dd79c3457ea2.tar.gz
Add .circleci/config.yml
Diffstat (limited to '.circleci')
-rw-r--r--.circleci/config.yml34
1 files changed, 34 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
new file mode 100644
index 0000000..47e30b8
--- /dev/null
+++ b/.circleci/config.yml
@@ -0,0 +1,34 @@
+version: 2
+
+workflows:
+ version: 2
+ simple-workflow:
+ jobs:
+ - build:
+ filters:
+ tags:
+ only: /.*/
+
+jobs:
+ build:
+ docker:
+ - image: 'fpco/stack-build:latest'
+
+ steps:
+ - checkout
+ - restore_cache:
+ key: 'v1-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'
+ - save_cache:
+ key: 'v1-stylish-haskell-{{ arch }}-{{ .Branch }}-{{ .Revision }}'
+ paths:
+ - '~/.cabal'
+ - '~/.ghc'