Hi, I am developing a library that easily transforms JSON
alists into EIEIO objects, jeison. It sounds pretty obvious and a duplicate of
json.el functionality, but it is a bit trickier than that.
Jeison defines more of a declarative way of mapping
alist onto an object by specifying how certain EIEIO class slots can be fetched in JSON object.
I had no dependencies till the very last moment where it became too hard avoiding dash.el. I ran my tests in Travis using the following command:
emacs -batch -l jeison.el -l jeison-tests.el -f ert-run-tests-batch-and-exit
dash.el in Travis CI
I found out that magit downloads
dash.el like this:
curl -fsSkL -O https://raw.githubusercontent.com/magnars/dash.el/master/dash.el
and byte compiles it in the following manner:
emacs -Q --batch -f batch-byte-compile dash.el
I didn't quite get what I should do after, but even this command fails on my MacOSX:
>>Error occurred processing dash.el: File error (("Cannot open load file" "No such file or directory" "warnings"))
More naive approach:
emacs -batch -l dash.el -l jeison.el -l jeison-tests.el -f ert-run-tests-batch-and-exit
also fails with the following error:
Eager macro-expansion failure: (file-error "Cannot open load file" "No such file or directory" "cl") Eager macro-expansion failure: (file-error "Cannot open load file" "No such file or directory" "cl") Cannot open load file: No such file or directory, cl
So the question is: What is the easiest way to download and use an external package while testing your package in Travis?