support for some basic tests
This commit is contained in:
		
							parent
							
								
									577652feec
								
							
						
					
					
						commit
						c15d7a3c08
					
				
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@ -1 +1,2 @@
 | 
			
		||||
*.elc
 | 
			
		||||
.elpa/
 | 
			
		||||
							
								
								
									
										10
									
								
								Makefile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								Makefile
									
									
									
									
									
										Normal file
									
								
							@ -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
 | 
			
		||||
@ -21,6 +21,10 @@
 | 
			
		||||
(require 'ox-ascii)
 | 
			
		||||
(require 'cl-lib)
 | 
			
		||||
 | 
			
		||||
(eval-when-compile
 | 
			
		||||
  (progn
 | 
			
		||||
    (checkdoc)))
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
;; TODO:
 | 
			
		||||
;; Sublists aren't supported in gemini
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										8
									
								
								test/compile.el
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								test/compile.el
									
									
									
									
									
										Normal file
									
								
							@ -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)))
 | 
			
		||||
							
								
								
									
										4
									
								
								test/elpa.el
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								test/elpa.el
									
									
									
									
									
										Normal file
									
								
							@ -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)
 | 
			
		||||
							
								
								
									
										28
									
								
								test/make-update.el
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								test/make-update.el
									
									
									
									
									
										Normal file
									
								
							@ -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"))))
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user