-
Notifications
You must be signed in to change notification settings - Fork 190
Use cabal-doctest only during CI #365
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
Conversation
You should also take care of AppVeyor. Can the shell script run on Windows? |
@kazu-yamamoto I intentionally used a shell script so we can run it via PS: I'm on it! |
608daf7
to
aa2f001
Compare
Moreover, this removes the superflous manual `cabal install hspec-discover cabal-doctest` invocations.
aa2f001
to
d9154d4
Compare
@kazu-yamamoto done; you should take a look now. I also noticed there was some non-idiomatic manual installation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
Q1) Don't we need a default
|
They're only needed for compliant source-tarballs -- and
Right... the Do you need the script to support BSD? If so, I can find an alternative way to perform the transformations. |
I would suggest to prepare |
Supporting this sounds crazy: https://stackoverflow.com/questions/5694228/sed-in-place-flag-that-works-both-on-mac-bsd-and-linux |
the problem with that approach is that you need to keep the two files manually synced up which can become annoying to do. Also, I've tweaked the |
@hvr |
@llelf the script is already a |
@hvr yes, but you run it with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
Merged. |
Proof of concept for using build-type:custom only during CI