Lucien Cartier-Tilet
d851c7de92
All checks were successful
continuous-integration/drone/push Build is passing
This commit removes some files that are no longer needed for testing the package, such as the files in the ./test directory which are already covered by Eask itself. BREAKING CHANGE: test files no longer exists
65 lines
1.4 KiB
Makefile
65 lines
1.4 KiB
Makefile
EMACS ?= emacs
|
|
EASK ?= eask
|
|
|
|
.PHONY: clean package install compile test checkdoc lint
|
|
|
|
# (Option 1): Basic for beginner, only tests for package's installation
|
|
ci: clean package install compile
|
|
# (Option 2): Advanced for a high-quality package
|
|
#ci: clean package install compile checkdoc lint test
|
|
|
|
# Build an package artefact, default to `dist` folder
|
|
#
|
|
# This is used to test if your package can be built correctly before the
|
|
# package installation.
|
|
package:
|
|
@echo "Packaging..."
|
|
$(EASK) package
|
|
|
|
# Install package
|
|
#
|
|
# If your package is a single file package, you generally wouldn't need to
|
|
install:
|
|
@echo "Installing..."
|
|
$(EASK) install
|
|
|
|
# Byte-compile package
|
|
#
|
|
# Compile all your package .el files to .elc
|
|
compile:
|
|
@echo "Compiling..."
|
|
$(EASK) compile
|
|
|
|
# Run regression tests
|
|
#
|
|
# The default test is `ert`; but Eask also support other regression test!
|
|
# See https://emacs-eask.github.io/Getting-Started/Commands-and-options/#-linter
|
|
test:
|
|
@echo "Testing..."
|
|
$(EASK) install-deps --dev
|
|
$(EASK) test ert ./test/*.el
|
|
|
|
# Run checkdoc
|
|
#
|
|
# See https://www.emacswiki.org/emacs/CheckDoc
|
|
checkdoc:
|
|
@echo "Checking documentation..."
|
|
$(EASK) lint checkdoc --strict
|
|
|
|
# Lint package metadata
|
|
#
|
|
# See https://github.com/purcell/package-lint
|
|
lint:
|
|
@echo "Linting..."
|
|
$(EASK) lint package
|
|
|
|
# Clean up
|
|
#
|
|
# This will clean all the entire workspace including the following folders
|
|
# and files
|
|
#
|
|
# - .eask folder (sandbox)
|
|
# - all .elc files
|
|
clean:
|
|
$(EASK) clean all
|