Emacs library to communicate with CouchDB databases.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.2KB

  1. SRCS = libelcouch.el
  2. TESTS = test/libelcouch-test.el
  3. LOAD_PATH = -L . -L ../package-lint
  4. EMACSBIN ?= emacs
  5. BATCH = $(EMACSBIN) -Q --batch $(LOAD_PATH) \
  6. --eval "(setq load-prefer-newer t)" \
  7. --eval "(require 'package)" \
  8. --eval "(add-to-list 'package-archives '(\"melpa-stable\" . \"http://stable.melpa.org/packages/\"))" \
  9. --eval "(setq enable-dir-local-variables nil)" \
  10. --funcall package-initialize
  11. .PHONY: all ci-dependencies check test lint
  12. all: check
  13. ci-dependencies:
  14. # Install dependencies in ~/.emacs.d/elpa
  15. $(BATCH) \
  16. --funcall package-refresh-contents \
  17. --eval "(package-install 'package-lint)"
  18. check: lint test
  19. test:
  20. $(BATCH) --eval "(progn\
  21. (load-file \"test/libelcouch-test.el\")\
  22. (ert-run-tests-batch-and-exit))"
  23. lint :
  24. # Byte compile all and stop on any warning or error
  25. $(BATCH) \
  26. --eval "(setq byte-compile-error-on-warn t)" \
  27. -f batch-byte-compile ${SRCS} ${TESTS}
  28. # Run package-lint to check for packaging mistakes
  29. $(BATCH) \
  30. --eval "(require 'package-lint)" \
  31. -f package-lint-batch-and-exit ${SRCS}
  32. # Run checkdoc to check Emacs Lisp conventions
  33. $(BATCH) --eval "(mapcar #'checkdoc-file '($(patsubst %, \"%\", ${SRCS})))"