[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/csharp-mode 77cbcf4 030/459: Add byte-compilation, unit
From: |
ELPA Syncer |
Subject: |
[elpa] externals/csharp-mode 77cbcf4 030/459: Add byte-compilation, unit-test running to makefile. |
Date: |
Sun, 22 Aug 2021 13:58:49 -0400 (EDT) |
branch: externals/csharp-mode
commit 77cbcf4497dcff83a6b2906b607ca5b36bd84731
Author: Jostein Kjønigsen <jostein@kjonigsen.net>
Commit: Jostein Kjønigsen <jostein@kjonigsen.net>
Add byte-compilation, unit-test running to makefile.
Add runner-script for travis.
Addresses both
https://github.com/josteink/csharp-mode/issues/6
and
https://github.com/josteink/csharp-mode/issues/7
---
csharp-mode-tests.el | 4 ++++
makefile | 14 ++++++++++++++
run-travis-ci.sh | 14 ++++++++++++++
3 files changed, 32 insertions(+)
diff --git a/csharp-mode-tests.el b/csharp-mode-tests.el
new file mode 100644
index 0000000..8f85e09
--- /dev/null
+++ b/csharp-mode-tests.el
@@ -0,0 +1,4 @@
+
+(require 'ert)
+
+;; TODO: add tests (and deftest macro)
diff --git a/makefile b/makefile
index f2bf437..cd06de7 100644
--- a/makefile
+++ b/makefile
@@ -3,6 +3,10 @@ PACKAGE_SHORTNAME=csharp-mode
PACKAGE_NAME:=$(PACKAGE_SHORTNAME)-$(VERSION)
PACKAGE_DIR:=/tmp/$(PACKAGE_NAME)
+EMACS=$(shell which emacs) -Q -batch -L .
+ELS = csharp-mode.el csharp-mode-tests.el
+ELCS = $(ELS:.el=.elc)
+
package: $(PACKAGE_DIR)
tar cvf ../$(PACKAGE_NAME).tar --exclude="*#" --exclude="*~" -C
$(PACKAGE_DIR)/.. $(PACKAGE_NAME)
@@ -11,8 +15,18 @@ $(PACKAGE_DIR):
cp -r ../$(PACKAGE_SHORTNAME)/* $@
sed -re "s/VERSION/$(VERSION)/" $@/$(PACKAGE_NAME)-package-template.el
> $@/$(PACKAGE_NAME)-pkg.el
+test:
+ + $(EMACS) -l csharp-mode-tests.el -f ert-run-tests-batch-and-exit
+
+%.elc: %.el
+ $(EMACS) -f batch-byte-compile $<
+
+#all: $(ELCS) test package
+all: test package
+
clean:
rm -f ../$(PACKAGE_NAME).tar
rm -rf $(PACKAGE_DIR)
+ rm -rf $ELCS
# end
diff --git a/run-travis-ci.sh b/run-travis-ci.sh
new file mode 100755
index 0000000..f73d79d
--- /dev/null
+++ b/run-travis-ci.sh
@@ -0,0 +1,14 @@
+#!/bin/sh -e
+
+cd "$(dirname "$0")"
+
+ECUKES_EMACS=${EMACS:-$(which emacs)}
+export ECUKES_EMACS
+
+echo "*** Emacs version ***"
+echo "ECUKES_EMACS = $ECUKES_EMACS"
+"$ECUKES_EMACS" --version
+echo
+
+# bytecompile, tests, package
+make all
- [elpa] externals/csharp-mode 6b688a6 014/459: update makefile, (continued)
- [elpa] externals/csharp-mode 6b688a6 014/459: update makefile, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode fc60bff 019/459: Fix for breakage in Emacs 24.4, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 13984a8 004/459: First checkin of flymake-for-csharp.el, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 3414c63 006/459: First check in of Cscomp - C# code completion., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 756f086 003/459: Few updates to csharp-mode. First checkin of aspx-mode.el, for ASPX files., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 03ed8fb 016/459: v0.8.4 - fixes bug with yasnippet integration, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode afe5315 022/459: Add GPL v2 license as found in the original project on Google Code., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode e940015 023/459: Update readme-file., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode d657aa0 025/459: Fix error in heading., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 2a28871 026/459: clean out unused files, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 77cbcf4 030/459: Add byte-compilation, unit-test running to makefile.,
ELPA Syncer <=
- [elpa] externals/csharp-mode 35d295d 008/459: Fix a problem with parsing in csharp-completion.el, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 9f66d3b 011/459: fix doc to remove mention of flymake-command, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode c47e9ea 017/459: v0.8.5 - updates to imenu, fontification, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 1119177 018/459: Small update in string-lastindexof, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 287f044 031/459: Automatically detect version during package-build based on elisp-content., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode bd1d83e 044/459: Updated readme., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode d33cfb6 046/459: Update readme with note about MELPA stable., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode b286555 054/459: Ensure csharp-mode calls `prog-mode` hooks., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 78293bd 029/459: Add proper makefile for creating and publishing packages., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 44718a3 007/459: Update of csharp-mode.el - version # is now 0.7.6, ELPA Syncer, 2021/08/22