emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/frog-menu 927ff01 13/13: Merge branch 'master' into ext


From: Clemens Radermacher
Subject: [elpa] externals/frog-menu 927ff01 13/13: Merge branch 'master' into externals/frog-menu
Date: Mon, 19 Aug 2019 07:17:07 -0400 (EDT)

branch: externals/frog-menu
commit 927ff01543cd31f55f7c0fefc754fe8980430e83
Merge: 897955c 1cae377
Author: Clemens Radermacher <address@hidden>
Commit: Clemens Radermacher <address@hidden>

    Merge branch 'master' into externals/frog-menu
---
 .github/PULL_REQUEST_TEMPLATE.md | 21 +++++++++++++++++++++
 .travis.yml                      | 22 ++++++++++++++++++++++
 Makefile                         | 12 ++++++++++--
 README.org                       |  8 ++++++++
 test/frog-menu-test.el           | 29 ++++++++++++++++++++++++++---
 5 files changed, 87 insertions(+), 5 deletions(-)

diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
new file mode 100644
index 0000000..7b29a44
--- /dev/null
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -0,0 +1,21 @@
+This package is subject to the [Copyright 
Assignment](https://www.gnu.org/prep/maintain/html_node/Copyright-Papers.html)
+policy of [GNU ELPA](https://elpa.gnu.org/packages/) packages.
+
+If your changes are not
+[significant](https://www.gnu.org/prep/maintain/html_node/Legally-Significant.html#Legally-Significant)
+(below 15 lines) I can add your changes without assignment. If your 
contribution
+is bigger than 15 lines and you don't want to assign you should still open a PR
+and I will consider adding the changes myself.
+
+The assignment is applicable for all projects related to Emacs. It basically
+transfers copyright of your submitted changes to the FSF. That way they can
+enforce [Copyleft](https://www.gnu.org/copyleft/).
+
+The assignment process is very easy and can often be handled via email.
+
+Please see [the request 
form](https://git.savannah.gnu.org/cgit/gnulib.git/tree/doc/Copyright/request-assign.future)
+if you want to do the assignment (use Emacs for the name of the program you 
want to contribute to).
+
+Confirm with `x` if applicable:
+
+- [ ] I have signed the copyright paperwork for contributing to GNU Emacs.
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..78968a1
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,22 @@
+dist: trusty
+sudo: required
+# addons:
+#   apt:
+#     packages:
+#       - texinfo
+env:
+  - EMACS_VERSION=26.1-travis
+  # - EMACS_VERSION=git-snapshot
+# matrix:
+#   allow_failures:
+#     - env: EMACS_VERSION=git-snapshot
+install:
+  - git clone https://github.com/purcell/package-lint.git ~/package-lint
+  - git clone --depth 1 https://github.com/rejeep/evm.git ~/.evm
+  - export PATH="$HOME/.evm/bin:$PATH"
+  - evm config path /tmp
+  - evm install "emacs-$EMACS_VERSION"
+  - export PATH="/tmp/emacs-$EMACS_VERSION/bin:$PATH"
+  - emacs --version
+script:
+  - make
diff --git a/Makefile b/Makefile
index d8de248..48e4c02 100644
--- a/Makefile
+++ b/Makefile
@@ -2,10 +2,10 @@ EMACS ?= emacs
 
 package_files := $(wildcard *.el)
 test_files := $(wildcard test/*.el)
-package_lint  := ../package-lint/package-lint.el
+package_lint  := ~/package-lint/package-lint.el
 
 .PHONY: all
-all: compile checkdoc lint test
+all: compile checkdoc lint test itest
 
 .PHONY: compile
 compile:
@@ -32,6 +32,7 @@ lint:
                echo "[package-lint] $$file" ;\
                $(EMACS) -Q --batch \
                        -l $(package_lint) \
+                       --eval "(defalias 
'package-lint--check-packages-installable #'ignore)" \
                        -f package-lint-batch-and-exit $$file ;\
        done
 
@@ -44,6 +45,13 @@ test:
                        -f ert-run-tests-batch-and-exit ;\
        done
 
+.PHONY: itest
+itest:
+       @if emacsclient -a false -e 't' 1>/dev/null 2>/dev/null; then \
+               echo "[interactive-test]" ;\
+               emacsclient --eval "(load-file \"test/frog-menu-test.el\")" ;\
+       fi
+
 .PHONY: clean
 clean:
        @echo "[clean]" *.elc
diff --git a/README.org b/README.org
index 9260b03..e8fc72f 100644
--- a/README.org
+++ b/README.org
@@ -1,3 +1,11 @@
+#+BEGIN_HTML
+<p>
+<a href="https://elpa.gnu.org/packages/frog-menu.html";><img alt="GNU ELPA" 
src="https://elpa.gnu.org/favicon.png"/></a>
+<a href="https://travis-ci.com/clemera/frog-menu";><img alt="Travis CI" 
src="https://travis-ci.com/clemera/frog-menu.svg?branch=master"/></a>
+</p>
+#+END_HTML
+
+
 * Description
 
 This package lets you quickly pick strings from ad hoc menus. Just like a frog
diff --git a/test/frog-menu-test.el b/test/frog-menu-test.el
index f9d3b7f..796801b 100644
--- a/test/frog-menu-test.el
+++ b/test/frog-menu-test.el
@@ -1,6 +1,29 @@
 (require 'ert)
 (require 'frog-menu)
 
-(ert-deftest frog-menu-test-stub ()
-  (should
-   (eq frog-menu-type-function #'frog-menu-type)))
+
+;; TODO: test grid creation as non interactive test:
+;; all items in it? correctly ordered? respecting dimensions?
+
+
+;; tests for interactive usage
+;; load tests and run ert
+(unless noninteractive
+  (require 'with-simulated-input)
+  (ert-deftest frog-menu-test-stub ()
+    (should (string= (with-simulated-input "a"
+                       (frog-menu-read "Check: " '("this" "that" "more")))
+                     "this")))
+  (ert-deftest frog-menu-test-stub ()
+    (should (string= (with-simulated-input "s"
+                       (frog-menu-read "Check: " '("this" "that" "more")))
+                     "that")))
+  (when load-file-name
+    (ert-run-tests-batch nil)))
+
+
+
+
+
+
+



reply via email to

[Prev in Thread] Current Thread [Next in Thread]