aboutsummaryrefslogtreecommitdiffstats
path: root/GNUmakefile
diff options
context:
space:
mode:
authorGravatar Tom Willemse2019-03-28 00:53:55 -0700
committerGravatar Tom Willemse2019-03-28 00:53:55 -0700
commit714f2c6ef7edbc5d78fcaebfc60034dbe0c7c465 (patch)
tree6d7c046dda571f5c3498d1dc36bb4cee14a63bf6 /GNUmakefile
parent592067ef70e9bb12ca6dae6c49d0b63fdbbbed29 (diff)
downloademacs-config-714f2c6ef7edbc5d78fcaebfc60034dbe0c7c465.tar.gz
emacs-config-714f2c6ef7edbc5d78fcaebfc60034dbe0c7c465.zip
Add GitLab CI/CD settings
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile
new file mode 100644
index 0000000..3f364b8
--- /dev/null
+++ b/GNUmakefile
@@ -0,0 +1,26 @@
+FILES := $(wildcard *.el)
+
+PACKAGE_TARGETS := $(addprefix package-,$(FILES))
+
+package: $(PACKAGE_TARGETS)
+
+package-%: %
+ emacs --batch \
+ --load oni-package.el \
+ --funcall package-initialize \
+ --eval '(package-upload-file "$^")'
+
+test-%:
+ emacs --batch \
+ --load oni-package.el \
+ --funcall package-initialize \
+ --eval '(package-refresh-contents)' \
+ --load ert \
+ --load "test/$*-test.el" \
+ --funcall package-initialize \
+ --eval "(package-install-file \"oni-data-dir.el\")" \
+ --eval "(package-install-file \"$*.el\")" \
+ --funcall ert-run-tests-batch-and-exit
+
+clean:
+ rm -fv $(FILES)