You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using stack with CircleCI, and I'd like a way to build the test dependencies up-front without actually running the tests. With CircleCI I am caching the build output so that repeated runs are done more quickly. Here is what I am doing:
# A snapshot of .stack-work and ~/.stack is restored from a previous run (if any)
stack build --no-terminal --install-ghc --jobs 2
stack test --prefetch --dry-run
# A snapshot of .stack-work and ~/.stack is persisted
Test:
stack test
The problem is the stack test still goes through a lengthy build process. I would love to be able to do this in the build phase rather than when the tests run.
Also if there's anything else I could improve in my stack usage please let me know.
The text was updated successfully, but these errors were encountered:
I am using stack with CircleCI, and I'd like a way to build the test dependencies up-front without actually running the tests. With CircleCI I am caching the build output so that repeated runs are done more quickly. Here is what I am doing:
Setup:
Build:
Test:
stack test
The problem is the
stack test
still goes through a lengthy build process. I would love to be able to do this in the build phase rather than when the tests run.Also if there's anything else I could improve in my stack usage please let me know.
The text was updated successfully, but these errors were encountered: