mirror of
https://github.com/thma/LtuPatternFactory.git
synced 2024-12-04 12:43:14 +03:00
32 lines
912 B
YAML
32 lines
912 B
YAML
version: 2.1
|
|
jobs:
|
|
build:
|
|
docker:
|
|
- image: fpco/stack-build:lts
|
|
steps:
|
|
- checkout
|
|
- restore_cache:
|
|
name: Restore Cached Dependencies
|
|
keys:
|
|
- cci-demo-haskell-v1-{{ checksum "LtuPatternFactory.cabal" }}
|
|
- run:
|
|
name: Init Stack.yaml
|
|
command: stack init
|
|
- run:
|
|
name: Resolve/Update Dependencies
|
|
command: stack setup
|
|
- run:
|
|
name: Run tests
|
|
command: stack test
|
|
- run:
|
|
name: Install executable
|
|
command: stack install
|
|
- save_cache:
|
|
name: Cache Dependencies
|
|
key: cci-demo-haskell-v1-{{ checksum "LtuPatternFactory.cabal" }}
|
|
paths:
|
|
- ".stack-work"
|
|
- store_artifacts: # upload build artifact for display in CircleCI
|
|
path: ~/.local/bin/LtuPatternFactory
|
|
destination: LtuPatternFactory
|