-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Use Eask to test macos and windows (#1885)
* ci: Use Eask to test macos and windows * ci: Install eask * ci: Fix jump file test * revert spaces * ci: skip find-file test on windows * ci: Revert original test for windows * Delete Cask file * ci: Exclude tests on macos below 28.x
- Loading branch information
Showing
7 changed files
with
106 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,6 @@ typescript | |
/doc/build/*/ | ||
!/doc/build/texinfo/evil.texi | ||
*.pyc | ||
|
||
/.eask | ||
/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
(package "evil" | ||
"1.15.0" | ||
"Extensible vi layer") | ||
|
||
(website-url "https://github.com/emacs-evil/evil") | ||
(keywords "emulations") | ||
|
||
(package-file "evil.el") | ||
(files "evil-*.el" '(:exclude "*-tests.el" "*-pkg.el")) | ||
|
||
(script "test" "echo \"Error: no test specified\" && exit 1") | ||
|
||
(source 'gnu) | ||
(source 'melpa) | ||
|
||
(depends-on "emacs" "24.1") | ||
(depends-on "cl-lib") | ||
(depends-on "goto-chg") | ||
|
||
(setq network-security-level 'low) ; see https://github.com/jcs090218/setup-emacs-windows/issues/156#issuecomment-932956432 | ||
|
||
(eask-defcommand test | ||
"Basic tests." | ||
(require 'evil-tests) | ||
(evil-tests-initialize nil nil)) | ||
|
||
(eask-defcommand terminal | ||
"Load Evil in a terminal Emacs and run all tests." | ||
(require 'evil-tests) | ||
(evil-tests-initialize nil nil t)) | ||
|
||
(eask-defcommand profiler | ||
"Run all tests with profiler." | ||
(require 'evil-tests) | ||
(evil-mode 1) | ||
(evil-tests-initialize nil t)) | ||
|
||
(eask-defcommand indent | ||
"Re-indent all Evil code." | ||
(setq vc-handled-backends nil) | ||
(dolist (file (eask-package-el-files)) (load file)) | ||
(dolist (buffer (reverse (buffer-list))) | ||
(when (buffer-file-name buffer) | ||
(set-buffer buffer) | ||
(message "Indenting %s" (current-buffer)) | ||
(setq-default indent-tabs-mode nil) | ||
(untabify (point-min) (point-max)) | ||
(indent-region (point-min) (point-max)) | ||
(delete-trailing-whitespace) | ||
(untabify (point-min) (point-max)) | ||
(goto-char (point-min)) | ||
(while (re-search-forward "\\n\\\\{3,\\\\}" nil t) | ||
(replace-match "\\n\\n")) | ||
(when (buffer-modified-p) (save-buffer 0))))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
(define-package | ||
"evil" | ||
"1.15.0" | ||
"Extensible Vi layer for Emacs." | ||
"Extensible vi layer" | ||
'((emacs "24.1") | ||
(goto-chg "1.6") | ||
(cl-lib "0.5"))) | ||
(cl-lib "0.5")) | ||
:url "https://github.com/emacs-evil/evil" | ||
:keywords '("emulations")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters