Skip to content

Commit

Permalink
init test
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Sep 7, 2023
1 parent 6645c8f commit 903dd88
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 27 deletions.
17 changes: 11 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
# ignore these directories.
# ignore these directories
/.git
/recipes
/test
un-mini-pkg.el

# ignore generated files.
# ignore generated files
*.elc

# ignore I use to not ignore.
Update_Log.txt
TODO(jenchieh).txt
# cask packages
.cask/
dist/

# eask packages
/.eask

# ignore video
/video
3 changes: 0 additions & 3 deletions Cask

This file was deleted.

2 changes: 1 addition & 1 deletion Eask
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
(script "test" "echo \"Error: no test specified\" && exit 1")
(source 'melpa)


(setq network-security-level 'low) ; see https://github.com/jcs090218/setup-emacs-windows/issues/156#issuecomment-932956432
38 changes: 21 additions & 17 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,29 +1,33 @@
SHELL := /usr/bin/env bash

EMACS ?= emacs
CASK ?= cask

PKG-FILES := un-mini.el
EASK ?= eask

TEST-FILES := $(shell ls test/un-mini-*.el)
.PHONY: clean checkdoc lint package install compile test

.PHONY: clean checkdoc lint build compile unix-test
ci: clean package install compile test

ci: clean build compile
package:
@echo "Packaging..."
$(EASK) package

build:
$(CASK) install
install:
@echo "Installing..."
$(EASK) install

compile:
@echo "Compiling..."
@$(CASK) $(EMACS) -Q --batch \
-L . \
--eval '(setq byte-compile-error-on-warn t)' \
-f batch-byte-compile $(PKG-FILES)
$(EASK) compile

unix-test:
test:
@echo "Testing..."
$(CASK) exec ert-runner -L . $(LOAD-TEST-FILES) -t '!no-win' -t '!org'
$(EASK) test ert ./test/*.el

checkdoc:
@echo "Run checkdoc..."
$(EASK) lint checkdoc

lint:
@echo "Run package-lint..."
$(EASK) lint package

clean:
rm -rf .cask *.elc
$(EASK) clean-all

0 comments on commit 903dd88

Please sign in to comment.