diff options
| author | Jen-Chieh Shen <jcs090218@gmail.com> | 2024-05-31 04:58:58 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-31 13:58:58 +0200 |
| commit | b767c48cbfe0587fc7e57eca7c023706622a5513 (patch) | |
| tree | 366d5a9db02b7d1dc334f1a2e934d6d97b3a54d6 /Eask | |
| parent | 89617bba1177ebd878de3ab1b28dbe2a4684d0ce (diff) | |
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
Diffstat (limited to 'Eask')
| -rw-r--r-- | Eask | 54 |
1 files changed, 54 insertions, 0 deletions
@@ -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))))) |
