diff options
author | Jasper Van der Jeugt <m@jaspervdj.be> | 2017-12-26 12:09:26 +0100 |
---|---|---|
committer | Jasper Van der Jeugt <m@jaspervdj.be> | 2017-12-26 12:34:33 +0100 |
commit | 51631e2d2d5b6b83f84917f36477dd79c3457ea2 (patch) | |
tree | cda6ff2fa16a15dac9f1908280d307aefafcff2d /.circleci | |
parent | d628b839ef072611693b50b0ae1c57eba4ade8a6 (diff) | |
download | stylish-haskell-51631e2d2d5b6b83f84917f36477dd79c3457ea2.tar.gz |
Add .circleci/config.yml
Diffstat (limited to '.circleci')
-rw-r--r-- | .circleci/config.yml | 34 |
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' |