~abrahms/ox-gemini

c15d7a3c08c57d99bfe985298083faf1914febd4 — Justin Abrahms a month ago 577652f
support for some basic tests
6 files changed, 55 insertions(+), 0 deletions(-)

M .gitignore
A Makefile
M ox-gemini.el
A test/compile.el
A test/elpa.el
A test/make-update.el
M .gitignore => .gitignore +1 -0
@@ 1,1 1,2 @@
*.elc
.elpa/
\ No newline at end of file

A Makefile => Makefile +10 -0
@@ 0,0 1,10 @@
update:
	emacs -batch -l test/make-update.el

compile: clean
	emacs -batch -l test/elpa.el -l test/compile.el

clean:
	rm -f *.elc

.PHONY: update compile test clean

M ox-gemini.el => ox-gemini.el +4 -0
@@ 21,6 21,10 @@
(require 'ox-ascii)
(require 'cl-lib)

(eval-when-compile
  (progn
    (checkdoc)))


;; TODO:
;; Sublists aren't supported in gemini

A test/compile.el => test/compile.el +8 -0
@@ 0,0 1,8 @@
;;  bail out on compilation warnings and errors
(setq byte-compile-error-on-warn t)
(setq byte-compile--use-old-handlers nil)

;; compile *.el files
(dolist (file (file-expand-wildcards "*.el"))
  (unless (byte-compile-file file)
    (kill-emacs 1)))

A test/elpa.el => test/elpa.el +4 -0
@@ 0,0 1,4 @@
(setq package-user-dir
      (expand-file-name (format ".elpa/%s/elpa" emacs-version)))
(package-initialize)
(add-to-list 'load-path default-directory)

A test/make-update.el => test/make-update.el +28 -0
@@ 0,0 1,28 @@
;; list of the all the dependencies, including the dev dependencies
(defvar dev-packages '(evil evil-test-helpers))

;; initialize package.el
(setq package-user-dir
      (expand-file-name (format ".elpa/%s/elpa" emacs-version)))
(message "installing in %s ...\n" package-user-dir)
(package-initialize)
(setq package-archives
      '(("melpa" . "http://melpa.org/packages/")
        ("gnu" . "http://elpa.gnu.org/packages/")))
(package-refresh-contents)

;; install dependencies
(dolist (package dev-packages)
  (unless (package-installed-p package)
    (ignore-errors
      (package-install package))))

;; upgrade dependencies
(save-window-excursion
  (package-list-packages t)
  (condition-case nil
      (progn
        (package-menu-mark-upgrades)
        (package-menu-execute t))
    (error
     (message "All packages up to date"))))