[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
14/17: gnu: emacs-php-mode: Run tests.
From: |
guix-commits |
Subject: |
14/17: gnu: emacs-php-mode: Run tests. |
Date: |
Fri, 24 Mar 2023 05:14:36 -0400 (EDT) |
ngz pushed a commit to branch master
in repository guix.
commit 094f11d20299d2860aa4b13ff3c634b43451b990
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Fri Mar 24 10:06:10 2023 +0100
gnu: emacs-php-mode: Run tests.
* gnu/packages/emacs-xyz.scm (emacs-php-mode)[argument]: Use G-expressions.
Run tests.
---
gnu/packages/emacs-xyz.scm | 20 +++++++++++++++-----
1 file changed, 15 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 09787a5158..e57701714a 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -17254,11 +17254,21 @@ in Emacs.")
(base32 "01yw10z1kf38nz4z3gmpx56wmc7a7caf4nk6rccg0w4kklqw1h94"))))
(build-system emacs-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'enter-source-directory
- (lambda _
- (chdir "lisp"))))))
+ (list
+ #:tests? #true
+ #:test-command #~(list "emacs" "-Q" "--batch"
+ "-l" "../tests/php-mode-test.el"
+ "-f" "ert-run-tests-batch-and-exit")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'prepare-testing-bed
+ (lambda _
+ ;; This file is necessary for `php-project-root' test.
+ (call-with-output-file "tests/project/1/.git"
+ (const #t))))
+ (add-after 'prepare-testing-bed 'enter-source-directory
+ (lambda _
+ (chdir "lisp"))))))
(propagated-inputs (list emacs-projectile))
(home-page "https://github.com/ejmr/php-mode")
(synopsis "Major mode for editing PHP code")
- branch master updated (71651996d1 -> 34f2d3aad7), guix-commits, 2023/03/24
- 04/17: gnu: emacs-buttercup: Fix build with native compilation., guix-commits, 2023/03/24
- 05/17: gnu: Add emacs-nyxt., guix-commits, 2023/03/24
- 06/17: gnu: emacs-subed: Update to 1.2.1., guix-commits, 2023/03/24
- 03/17: gnu: Add emacs-column-enforce-mode., guix-commits, 2023/03/24
- 02/17: gnu: Add texlive-ddphonism., guix-commits, 2023/03/24
- 11/17: gnu: emacs-org-jira: Improve packages style., guix-commits, 2023/03/24
- 10/17: gnu: emacs-org-jira: Update to 4.4.1., guix-commits, 2023/03/24
- 14/17: gnu: emacs-php-mode: Run tests.,
guix-commits <=
- 01/17: gnu: Add emacs-jit-spell., guix-commits, 2023/03/24
- 16/17: gnu: emacs-telephone-line: Update to 0.6., guix-commits, 2023/03/24
- 12/17: gnu: emacs-org-jira: Run tests., guix-commits, 2023/03/24
- 09/17: gnu: emacs-elpher: Update to 3.4.3., guix-commits, 2023/03/24
- 08/17: gnu: emacs-citar: Update to 1.3.0., guix-commits, 2023/03/24
- 15/17: gnu: emacs-plz: Update to 0.4., guix-commits, 2023/03/24
- 17/17: gnu: emacs-wisp-mode: Update to 1.0.11., guix-commits, 2023/03/24
- 07/17: gnu: emacs-posframe: Update to 1.4.1., guix-commits, 2023/03/24
- 13/17: gnu: emacs-php-mode: Update to 1.24.3., guix-commits, 2023/03/24