Skip to content

Commit

Permalink
Add circleci configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
dmp1ce committed Apr 28, 2019
1 parent ffee66b commit cd778dd
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
version: 2.1
jobs:
build:
docker:
- image: fpco/stack-build:lts
steps:
- checkout
- restore_cache:
# Read about caching dependencies: https://circleci.com/docs/2.0/caching/
name: Restore Cached Dependencies
keys:
- cci-demo-haskell-v1-{{ checksum "package.yaml" }}-{{ checksum "stack.yaml" }}
- 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 "package.yaml" }}-{{ checksum "stack.yaml" }}
paths:
- "/root/.stack"
- ".stack-work"
- store_artifacts:
# Upload test summary for display in Artifacts: https://circleci.com/docs/2.0/artifacts/
path: ~/.local/bin/check_cgminer
destination: check_cgminer

0 comments on commit cd778dd

Please sign in to comment.