-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |