diff options
Diffstat (limited to '.circleci/config.yml')
-rw-r--r-- | .circleci/config.yml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..8aaf463 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,25 @@ +version: 2 +jobs: + build: + docker: + - image: 'fpco/stack-build:latest' + steps: + - checkout + - restore_cache: + key: 'v1-hakyll-{{ arch }}-{{ .Branch }}' + - run: + name: 'Update cabal indices' + command: 'cabal update' + - run: + # We set jobs to 1 here because that prevents Out-Of-Memory exceptions + # while compiling dependencies. + name: 'Install dependencies' + command: '.circleci/tickle.sh cabal install --only-dependencies --enable-tests --jobs=1' + - run: + name: 'Build and run tests' + command: 'cabal test' + - save_cache: + key: 'v1-hakyll-{{ arch }}-{{ .Branch }}-{{ .Revision }}' + paths: + - '~/.cabal' + - '~/.ghc' |