Skip to content

Proposal - Add Cask to deal with test dependencies #372

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

Closed
wants to merge 1 commit into from

Conversation

ardumont
Copy link
Contributor

Following this PR, I needed to add some unit test lib (el-mock) to tests that I did not break anything.

As no dependencies seems necessary until now, I just added a temporary HACK to solve the dependency (#370 (diff)) at the time.
This comes to solve this HACK (and maybe later ease the installation of new deps).

Cask seemed a proper solution for this.

Here is a way to make Cask run the tests (and solve tests dependencies).

The only issue now seems that in the current ci-travis, the emacs-snapshot you use is an
emacs 23.3 and Cask only supports emacs >= 24... (that's why the ci break on emacs-snapshot)

Note If you accept the previous PR, you'll see only the 2 latest commits which add Cask.

Cheers,

@ardumont ardumont changed the title Add casks to deal with test dependencies Add Cask to deal with test dependencies Nov 11, 2014
@ardumont ardumont changed the title Add Cask to deal with test dependencies Proposal - Add Cask to deal with test dependencies Nov 11, 2014
@ardumont ardumont force-pushed the add-cask-to-run-tests branch from 77ae655 to 45358e2 Compare November 11, 2014 16:13
@ardumont ardumont force-pushed the add-cask-to-run-tests branch 2 times, most recently from ebb37cf to be1f857 Compare November 20, 2014 20:12
@gracjan
Copy link
Contributor

gracjan commented Feb 17, 2015

@ardumont: In case you did not see this fails with:

cask upgrade-cask: error: Emacs 24 required, yours is Emacs 23.3.1.
Cask could not be bootstrapped. Try again later, or report an issue at https://github.com/cask/cask/issues
make: *** [deps] Error 1

Is there a way to fix this?

@ardumont
Copy link
Contributor Author

@ardumont: In case you did not see this fails with:

Thanks for raising this up.
I will look into it.

If haskell-mode maintainers are interested, I will rebase to the latest code, squash, remove commits, etc..

Follow up from the discussion haskell#370 (comment)

Use:
- Install Cask -
http://cask.readthedocs.org/en/latest/guide/installation.html
```sh
curl -fsSL https://raw.githubusercontent.com/cask/cask/master/go |
python
```
- Trigger tests:
```
make check
```
This will use cask only for the tests target.

Conflicts:
	Makefile
	tests/haskell-process-tests.el
@ardumont ardumont force-pushed the add-cask-to-run-tests branch from be1f857 to ec29dfb Compare February 17, 2015 17:44
@@ -10,6 +10,7 @@
;; 2003 Dave Love <[email protected]>
;; Keywords: faces files Haskell
;; URL: https://github.com/haskell/haskell-mode
;; Version: 13.07
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need a version here otherwise cask is not happy.
What should be the right one here?

@ardumont
Copy link
Contributor Author

ardumont commented Mar 3, 2015

I'm working on it :D

@ardumont ardumont mentioned this pull request Mar 3, 2015
@ardumont
Copy link
Contributor Author

ardumont commented Mar 4, 2015

I think we can also close this one too as this was split in 2:

Cheers,

@gracjan gracjan closed this Mar 4, 2015
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

Successfully merging this pull request may close these issues.

2 participants