Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stack build --enable-tests #568

Closed
dbp opened this issue Jul 12, 2015 · 5 comments
Closed

stack build --enable-tests #568

dbp opened this issue Jul 12, 2015 · 5 comments

Comments

@dbp
Copy link

dbp commented Jul 12, 2015

I'm using stack for a project, and having it run the test suite on CircleCI (the config file is here, if anyone else wants it: https://gist.github.com/dbp/bef96402ea07001dfed2).

One issue is that the caching mechanism runs before the test suite runs. This generally makes sense, but it is a problem with how stack handles test suites. In particular, stack build doesn't install libraries needed for the test suite, only stack test does.

Is there a way to install test dependencies without running the test suite?

@snoyberg
Copy link
Contributor

There's stack test --no-run-tests, which should do what you want.

On Sun, Jul 12, 2015, 7:39 AM Daniel Patterson notifications@github.com
wrote:

I'm using stack for a project, and having it run the test suite on
CircleCI (the config file is here, if anyone else wants it:
https://gist.github.com/dbp/bef96402ea07001dfed2).

One issue is that the caching mechanism runs before the test suite runs.
This generally makes sense, but it is a problem with how stack handles test
suites. In particular, stack build doesn't install libraries needed for
the test suite, only stack test does.

Is there a way to install test dependencies without running the test
suite?


Reply to this email directly or view it on GitHub
#568.

@dbp
Copy link
Author

dbp commented Jul 12, 2015

@snoyberg Was that added since 1.2.0? It isn't recognized as a command for me (and isn't in the options printed by stack test --help)

@snoyberg
Copy link
Contributor

Yes. stack lives deeply on the bleeding edge :). See #517 for when this was added.

@dbp
Copy link
Author

dbp commented Jul 12, 2015

Ahh, I see. I'll look out for it in the next release :) Overall, stack is great!

@dbp dbp closed this as completed Jul 12, 2015
@snoyberg
Copy link
Contributor

Thanks!

On Sun, Jul 12, 2015 at 8:29 AM Daniel Patterson notifications@github.com
wrote:

Closed #568 #568.


Reply to this email directly or view it on GitHub
#568 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants