[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)))
+
+
+
+
+
+
+
- [elpa] externals/frog-menu 4a48d8c 01/13: Add travis CI, (continued)
- [elpa] externals/frog-menu 4a48d8c 01/13: Add travis CI, Clemens Radermacher, 2019/08/19
- [elpa] externals/frog-menu 09470e5 03/13: Add dep for emacs git snapshot, Clemens Radermacher, 2019/08/19
- [elpa] externals/frog-menu 75dac04 06/13: Don't test against git-snapshot, Clemens Radermacher, 2019/08/19
- [elpa] externals/frog-menu dceccfb 04/13: Add badges, Clemens Radermacher, 2019/08/19
- [elpa] externals/frog-menu c431e0f 05/13: Fix link, Clemens Radermacher, 2019/08/19
- [elpa] externals/frog-menu f80cc54 07/13: Add GNU Copyright PR template, Clemens Radermacher, 2019/08/19
- [elpa] externals/frog-menu 45aa3e7 09/13: Switch to markdown again, Clemens Radermacher, 2019/08/19
- [elpa] externals/frog-menu 0c04e58 10/13: Improve PR template, Clemens Radermacher, 2019/08/19
- [elpa] externals/frog-menu b992e02 08/13: Switch to org PR template, Clemens Radermacher, 2019/08/19
- [elpa] externals/frog-menu 1cae377 12/13: Add interactive tests, Clemens Radermacher, 2019/08/19
- [elpa] externals/frog-menu 927ff01 13/13: Merge branch 'master' into externals/frog-menu,
Clemens Radermacher <=
- [elpa] externals/frog-menu e03cee3 11/13: Improve PR template, Clemens Radermacher, 2019/08/19