[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/with-simulated-input 63297040ad 052/134: Switch from Cask
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/with-simulated-input 63297040ad 052/134: Switch from Cask to Eldev |
Date: |
Mon, 10 Jan 2022 23:00:04 -0500 (EST) |
branch: elpa/with-simulated-input
commit 63297040ad1128295310ad6b64b4fc91860fb229
Author: Ryan C. Thompson <rct@thompsonclan.org>
Commit: Ryan C. Thompson <rct@thompsonclan.org>
Switch from Cask to Eldev
---
.gitignore | 4 +++-
.travis.yml | 19 ++++++-------------
Cask | 14 --------------
Eldev | 9 +++++++++
Makefile | 21 ---------------------
README.md | 47 ++++-------------------------------------------
setversion.sh | 2 +-
7 files changed, 23 insertions(+), 93 deletions(-)
diff --git a/.gitignore b/.gitignore
index 176df11369..860fe0d46f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,3 @@
-/.cask
+# Added automatically by `eldev init'.
+/.eldev
+/Eldev-local
diff --git a/.travis.yml b/.travis.yml
index 6ff2e225d6..1cb32a75bc 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -10,7 +10,7 @@ env:
- EMACS_CI=emacs-26-1
- EMACS_CI=emacs-26-2
- EMACS_CI=emacs-26-3
- - EMACS_CI=emacs-snapshot
+ # - EMACS_CI=emacs-snapshot
matrix:
allow_failures:
@@ -24,18 +24,11 @@ before_script:
travis-wait-enhanced --version
# Install nix-emacs-ci
- bash <(curl
https://raw.githubusercontent.com/purcell/nix-emacs-ci/master/travis-install)
- # Install cask
- - curl -fsSkL https://raw.github.com/cask/cask/master/go | python
- - export PATH="$HOME/.cask/bin:$PATH"
- # Fix cask (See
https://github.com/cask/cask/issues/399#issuecomment-331640427)
- - perl -ibak -lape 's{#!/usr/bin/env python}{#!/usr/bin/python}' "$(which
cask)"
- # Check that cask is finding the right emacs
- - cask emacs --version
- # Use version-specific Cask file if it exists
- - if [ -e "Cask-$EMACS_CI" ]; then cp "Cask-$EMACS_CI" "Cask"; fi
+ # Install Eldev
+ - curl -fsSL
https://raw.github.com/doublep/eldev/master/webinstall/travis-eldev > x.sh &&
source ./x.sh
# Install elisp dependencies
- - cask install
+ - eldev prepare test
script:
- - travis-wait-enhanced --timeout=3m -- make compile
- - travis-wait-enhanced --timeout=3m -- make test
+ - travis-wait-enhanced --timeout=3m -- eldev -s -dtT test
+ - travis-wait-enhanced --timeout=3m -- eldev -p -dtT test
diff --git a/Cask b/Cask
deleted file mode 100644
index b392f75e75..0000000000
--- a/Cask
+++ /dev/null
@@ -1,14 +0,0 @@
-;; -*- mode: emacs-lisp -*-
-
-(source gnu)
-(source melpa)
-
-(package "with-simulated-input" "2.4"
- "A macro to simulate user input non-interactively.")
-
-(depends-on "seq")
-(depends-on "s")
-
-(development
- (depends-on "buttercup")
- (depends-on "undercover"))
diff --git a/Eldev b/Eldev
new file mode 100644
index 0000000000..2518938700
--- /dev/null
+++ b/Eldev
@@ -0,0 +1,9 @@
+; -*- mode: emacs-lisp; lexical-binding: t; no-byte-compile: t -*-
+
+;; Uncomment some calls below as needed for your project. It is not
+;; recommended to use `melpa-unstable' unless some dependencies simply
+;; cannot be downloaded from another archive.
+(eldev-use-package-archive 'gnu)
+(eldev-use-package-archive 'melpa-stable)
+
+(eldev-add-extra-dependencies 'test 'undercover)
diff --git a/Makefile b/Makefile
deleted file mode 100644
index d722381dc0..0000000000
--- a/Makefile
+++ /dev/null
@@ -1,21 +0,0 @@
-ELISP_FILES := $(shell cask files)
-ELC_FILES := $(patsubst %.el,%.elc,$(ELISP_FILES))
-
-.PHONY: test compile clean
-.INTERMEDIATE: .compile.intermediate
-
-all: test
-
-# We run clean-elc because undercover.el doesn't support elc files
-test:
- cask clean-elc
- cask exec buttercup -L . tests
-
-compile: $(ELC_FILES)
-
-$(ELC_FILES): .compile.intermediate
-.compile.intermediate: $(ELISP_FILES)
- cask build
-
-clean:
- cask clean-elc
diff --git a/README.md b/README.md
index c67b1e38fe..f3f95e72ff 100644
--- a/README.md
+++ b/README.md
@@ -59,46 +59,7 @@ Get it from MELPA:
https://stable.melpa.org/#/with-simulated-input
## Running the tests
This package comes with a test suite. If you want to run it yourself,
-first install the [cask](http://cask.readthedocs.io/en/latest/)
-dependency manager. Then, from the package directory, run `cask
-install` to install all the development dependencies, in
-particular
-[buttercup](https://github.com/jorgenschaefer/emacs-buttercup).
-Finally, to run the tests, execute `cask exec buttercup -L .`. You
-should see something like this:
-
-```
-$ cask exec buttercup -L .
-Running 17 specs.
-
-`with-simulated-input'
- should work for basic string input
- should throw an error if the input is incomplete
- should allow the input to trigger errors
- should ignore extra input after BODY has completed
- should allow multiple functions in BODY to read input
- should allow aborting via C-g in KEYS
- used with `completing-read'
- should work with unambiguous tab completion
- should work with ambiguous tab completion
- should fail to exit with ambiguous completion and `require-match'Making
completion list...
-
- should fail to exit with ambiguous completion and `require-match'
- using lisp forms in KEYS argument of `with-simulated-input'
- should allow evaluating arbitrary lisp forms
- should allow lisp forms to throw errors
- should not interpret lisp forms once BODY has finished
-
-`wsi-simulate-idle-time'
- should run idle timers
- should not run idle times with longer times
- should run idle timers added by other idle timers
- should run idle timers added by other idle timers when the new timer is in
the past
- used within `with-simulated-input'
- should allow idle timers to trigger during simulated input
-
-Ran 17 specs, 0 failed, in 0.6 seconds.
-````
-
-Please run the tests before submitting any pull requests, and note in
-the pull request whether any of the tests fail.
+first install the [Eldev](https://github.com/doublep/eldev), then use
+`eldev test` to run the tests. Please run this test suite before
+submitting any pull requests, and note in the pull request whether any
+of the tests fail.
diff --git a/setversion.sh b/setversion.sh
index b87bd9d5e8..24ab06a0ff 100755
--- a/setversion.sh
+++ b/setversion.sh
@@ -8,7 +8,7 @@ if [ -n "$TARGET_VERSION" ]; then
perl -i'orig_*' -lape "s/Version: [0-9.]+/Version: $TARGET_VERSION/g;" \
-e
"s/((?:defconst|defvar|setq).*-version\s+)\"[0-9.]+\"/\${1}\"$TARGET_VERSION\"/g;"
\
-e "s/\(package \"${PKG_NAME}\" \"[0-9.]+\"/(package \"${PKG_NAME}\"
\"${TARGET_VERSION}\"/g" \
- *.el Cask
+ *.el
else
echo "Usage: $0 VERSION_NUMBER"
fi
- [nongnu] elpa/with-simulated-input f089b6ef42 032/134: Add coverage badge, (continued)
- [nongnu] elpa/with-simulated-input f089b6ef42 032/134: Add coverage badge, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 3fe99dfdeb 035/134: Fix and update .travis.yml, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 3e68397677 038/134: Fix a typo, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 049c120764 045/134: Extend tests a bit, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 7b04400315 046/134: Improve documentation, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 1e0725f520 048/134: Switch from evm to nix-emacs-ci, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 26927ea680 049/134: Specify test directory explicitly, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 93e55eddee 053/134: Fix linter issues and remove unused dependencies, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input ff6bf569b1 057/134: Remove redundant buttercup dependency, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input c377a673c8 127/134: Prefix unused variables with underscores, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 63297040ad 052/134: Switch from Cask to Eldev,
ELPA Syncer <=
- [nongnu] elpa/with-simulated-input a5c955085d 055/134: Fix some warnings in test file, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 0d5e910f19 061/134: Add an error message for unhandled case, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 228732caf5 063/134: Enable undercover in CI, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 2a83333b6d 121/134: Update the edebug spec to include characters, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 166a00980a 131/134: Remove some unused test code, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 6f338aeaed 003/134: Add a README, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 5a67067ae0 002/134: Initial version, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 4fec23e53b 001/134: Inital empty commit, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 9a2ba67eba 009/134: Switch to using buttercup as the test suite, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 9d7afd6e6c 007/134: Delete some extraneous whitespace, ELPA Syncer, 2022/01/10