emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/detached 8d7292a0ed 1/2: Replace guix.scm with build-pa


From: ELPA Syncer
Subject: [elpa] externals/detached 8d7292a0ed 1/2: Replace guix.scm with build-package
Date: Mon, 18 Jul 2022 02:57:27 -0400 (EDT)

branch: externals/detached
commit 8d7292a0ed9131fa5d9d503c97d578691c8fb163
Author: Niklas Eklund <niklas.eklund@posteo.net>
Commit: Niklas Eklund <niklas.eklund@posteo.net>

    Replace guix.scm with build-package
    
    There is something not right with the guix.scm file. Need further
    investigation, in the meantime let's fallback on a combination of guix
    and shell.
---
 .build.yml     |  2 +-
 .dir-locals.el |  2 +-
 build-package  | 11 +++++++++++
 3 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/.build.yml b/.build.yml
index 1c83904acd..b4e6032a95 100644
--- a/.build.yml
+++ b/.build.yml
@@ -7,4 +7,4 @@ environment:
 tasks:
 - guix: |
     cd $project
-    guix build --file=guix.scm
+    guix shell emacs-minimal -- ./build-package
diff --git a/.dir-locals.el b/.dir-locals.el
index a31c9294c7..a0b2295bb9 100644
--- a/.dir-locals.el
+++ b/.dir-locals.el
@@ -1,3 +1,3 @@
-((nil . ((compile-command . "guix build --file=guix.scm")))
+((nil . ((compile-command . "guix shell emacs-minimal -- ./build-package")))
  (prog-mode (eval flymake-mode))
  (magit-status-mode (magit-todos-exclude-globs)))
diff --git a/build-package b/build-package
new file mode 100755
index 0000000000..bafe70cf78
--- /dev/null
+++ b/build-package
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+# ; -*- mode: sh;-*-
+
+# 1) Byte compile
+emacs --batch --load=detached.el -f batch-byte-compile *.el
+
+# 2) Make autoloads
+emacs --batch --eval='(progn (setq make-backup-files nil) 
(make-directory-autoloads default-directory "detached-autoloads.el"))'
+
+# 3) Run tests
+emacs --batch --load=detached.el --load=test/detached-test.el 
--funcall=ert-run-tests-batch-and-exit



reply via email to

[Prev in Thread] Current Thread [Next in Thread]